[wp-trac] [WordPress Trac] #23425: PHP warning in WP_Query::get_posts() when url includes ?page[]

WordPress Trac noreply at wordpress.org
Fri Feb 8 15:58:59 UTC 2013


#23425: PHP warning in WP_Query::get_posts() when url includes ?page[]
--------------------------+------------------------------
 Reporter:  dave1010      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by dave1010):

 Very similar, not sure if it's worth adding a new ticket. Adding `?s[]` to
 the URL gives an error in the same method:

     Warning:  stripslashes() expects parameter 1 to be string, array given
 in /var/www/projects/wordpress/wp-includes/query.php on line 2184

 There may be other parameters that need sanitising too.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23425#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list