WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#7460 closed defect (bug) (fixed)

Null input to http_build_query in http.php

Reported by: johnhennmacc Owned by:
Milestone: 2.7 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch
Focuses: Cc:

Description

With r8534, I get an error message like the following:

Warning: http_build_query() [function.http-build-query]: Parameter 1 expected to be Array or Object. Incorrect value given. in [blog path removed]/wp-includes/http.php on line 200

Removing the call to http_build_query removes the message but might have other side effects that I may not know about.

Attachments (1)

4779.r8535.diff (403 bytes) - added by santosj 7 years ago.
Tests for whether $body is an array or an object before running http_build_query() on $body. Based off of r8535

Download all attachments as: .zip

Change History (4)

@santosj7 years ago

Tests for whether $body is an array or an object before running http_build_query() on $body. Based off of r8535

comment:1 @santosj7 years ago

See also #4779.

comment:2 @santosj7 years ago

  • Keywords has-patch added

comment:3 @ryan7 years ago

  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.