[wp-trac] [WordPress Trac] #21618: WP_Query should accept menu_order as a query arg

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 17 16:39:45 UTC 2012


#21618: WP_Query should accept menu_order as a query arg
----------------------------+------------------------------
 Reporter:  wonderboymusic  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Query           |     Version:  2.0
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------------------

Comment (by nacin):

 Adding it to the public query vars list means it can be accessible via the
 URL, so ?menu_order=1. That does not seem to be desirable to expose on the
 frontend.

 Adding it to the private query vars list means it can be passed to wp().
 While not an issue of disclosure, I've only ever added things to that list
 that we needed in wp_edit_posts_query() or wp_edit_attachments_query().

 Adding it to WP_Query, as the other part of the patch does, seems
 sufficient.

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


More information about the wp-trac mailing list