[wp-trac] [WordPress Trac] #17737: Be better at forcing data types for query vars

WordPress Trac noreply at wordpress.org
Fri Jun 6 10:11:09 UTC 2014


#17737: Be better at forcing data types for query vars
---------------------------------+-----------------------------
 Reporter:  juliobox             |       Owner:
     Type:  defect (bug)         |      Status:  new
 Priority:  normal               |   Milestone:  Future Release
Component:  Query                |     Version:  3.0
 Severity:  normal               |  Resolution:
 Keywords:  has-patch 3.9-early  |     Focuses:
---------------------------------+-----------------------------

Comment (by IwanLuijksQuestMedia):

 What is the status of this ticket?

 I currently still run into this issue (on the search page), using an array
 of terms for the taxonomy in the querystring, like so (where 'country' is
 added to the querystring through a form submission using the GET method):
 country[]=nl&country[]=de

 The search actually does work, but causes a number of PHP errors:

 {{{
 Warning: strpos() expects parameter 1 to be string, array given in
 /home/hameeteman/www/wp-includes/query.php on line 1766

 Warning: preg_split() expects parameter 2 to be string, array given in
 /home/hameeteman/www/wp-includes/query.php on line 1767

 Warning: Invalid argument supplied for foreach() in /home/hameeteman/www
 /wp-includes/query.php on line 1768

 Warning: strpos() expects parameter 1 to be string, array given in
 /home/hameeteman/www/wp-includes/query.php on line 1766

 Warning: preg_split() expects parameter 2 to be string, array given in
 /home/hameeteman/www/wp-includes/query.php on line 1767

 Warning: Invalid argument supplied for foreach() in /home/hameeteman/www
 /wp-includes/query.php on line 1768
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/17737#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list