[wp-trac] [WordPress Trac] #19631: Consider a doing_it_wrong call for query_posts()
WordPress Trac
noreply at wordpress.org
Fri May 23 20:35:54 UTC 2014
#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: has-patch needs-docs | Focuses:
----------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* keywords: close => has-patch needs-docs
Comment:
Replying to [comment:8 nacin]:
> 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.
Let's do this.
Attached a patch for consideration. The docs might need some work, I've
just copied them from `pre_get_posts`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/19631#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list