WordPress.org

Make WordPress Core

Changeset 8536


Ignore:
Timestamp:
08/04/08 19:12:26 (6 years ago)
Author:
ryan
Message:

Tests for whether is an array or an object before running http_build_query() on . Props santosj. fixes #7460 see #4779

File:
1 edited

Legend:

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

    r8535 r8536  
    197197 
    198198        if ( is_null($body) ) { 
    199             if ( ! is_string($body) ) 
     199            if ( is_array($body) || is_object($body) ) 
    200200                $body = http_build_query($body); 
    201201 
Note: See TracChangeset for help on using the changeset viewer.