Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#20675 closed defect (bug) (duplicate)

Arrays in query params break WordPress as of latest upgrade

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

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)

#1 @SergeyBiryukov
14 years ago

  • Component GeneralCanonical
  • Keywords needs-patch removed
  • Milestone Awaiting Review
  • Resolutionduplicate
  • Status newclosed
Note: See TracTickets for help on using tickets.