[wp-trac] [WordPress Trac] #19631: Consider a doing_it_wrong call for query_posts()

WordPress Trac noreply at wordpress.org
Mon Sep 16 03:51:27 UTC 2013


#19631: Consider a doing_it_wrong call for query_posts()
-------------------------+-----------------------------
 Reporter:  johnbillion  |       Owner:
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  Future Release
Component:  Query        |     Version:
 Severity:  minor        |  Resolution:
 Keywords:  close        |
-------------------------+-----------------------------
Changes (by nacin):

 * status:  closed => reopened
 * resolution:  wontfix =>
 * milestone:   => Future Release


Comment:

 Replying to [comment:6 markoheijnen]:
 > Why not just deprecate it? We hate it and we think people shouldn't not
 use it. So why keeping it?

 Because it is really easy to use and the alternatives are tougher to
 articulate and code, especially to people just hacking together a theme.

 Re-opening for consideration down the line. I've been thinking about a new
 `pre_main_query` hook that parallels pre_get_posts but only runs
 `$query->is_main_query() and ! $query->is_admin()`. That might take some
 of the magic out of using pre_get_posts.

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


More information about the wp-trac mailing list