[wp-trac] [WordPress Trac] #37768: HTTP API No Longer Accepts Integer and Float Values since v4.6

WordPress Trac noreply at wordpress.org
Mon Aug 22 16:55:48 UTC 2016


#37768: HTTP API No Longer Accepts Integer and Float Values since v4.6
--------------------------+-----------------------------
 Reporter:  miunosoft     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  HTTP API      |    Version:  4.6
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 It seems integer and float values set to the `cookies` argument of
 `wp_remote_get()` and `wp_remote_post()` get lost with v4.6.

 {{{#!php
 wp_remote_get(
     $request_url,
     array(
         'timeout'       => 0.01,
         'blocking'      => false,
         'cookies'       => array(
             'x' => 'foo', // Okay
             'y' => 2,     // disappears
             'z' => 0.45', // disappears
         ),
     )
 );
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37768>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list