WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#20675 closed defect (bug) (duplicate)

Arrays in query params break WordPress as of latest upgrade

Reported by: singpolyma Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.3.2
Component: Canonical Keywords:
Focuses: Cc:

Description

I just upgraded Wordpress to 3.3.2, and one of my plugins (wp-diso-actionstream) broke, because some of its URLs expect ?include[]=blah (that is, an array in the query string), which messes up wp-includes/canonical.php:283

I have replaced the line with:

if(!is_array($_parsed_query)) $_parsed_query = array_map( 'rawurlencode', $_parsed_query );

and now it works, but I'm not sure what the right solution would be.

Change History (1)

comment:1 SergeyBiryukov2 years ago

  • Component changed from General to Canonical
  • Keywords needs-patch removed
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.