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

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 23 03:38:42 UTC 2011


#17737: Be better at forcing data types for query vars
--------------------------+------------------------------
 Reporter:  juliobox      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:  3.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:   => has-patch


Comment:

 [attachment:17737.2.patch] handles `author`, `cat` and `orderby`. Other
 `int` query vars don't seem to throw notices when being passed as an
 array.

 Probably need to handle `author_name` and `category_name` (they also throw
 notices in that case).

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


More information about the wp-trac mailing list