Make WordPress Core


Ignore:
Timestamp:
08/29/2016 02:41:56 AM (8 years ago)
Author:
dd32
Message:

HTTP: Accept non-string values in cookies, fixing a regression since 4.5.

Props swissspidy.
Fixes #37768 for trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-http.php

    r38429 r38430  
    437437            if ( $value instanceof WP_Http_Cookie ) {
    438438                $cookie_jar[ $value->name ] = new Requests_Cookie( $value->name, $value->value, $value->get_attributes() );
    439             } elseif ( is_string( $value ) ) {
     439            } elseif ( is_scalar( $value ) ) {
    440440                $cookie_jar[ $name ] = new Requests_Cookie( $name, $value );
    441441            }
Note: See TracChangeset for help on using the changeset viewer.