[wp-trac] [WordPress Trac] #14825: 'Sticky' Posts from excluded category still included in WP_Query results
WordPress Trac
wp-trac at lists.automattic.com
Sun Feb 27 09:29:31 UTC 2011
#14825: 'Sticky' Posts from excluded category still included in WP_Query results
------------------------------------+------------------------------
Reporter: newmediarts | Owner: ryan
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 3.0.1
Severity: major | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+------------------------------
Changes (by garyc40):
* keywords: sticky wp_query bug => has-patch dev-feedback
Comment:
I attached [attachment:14825.diff], hoping this would get the ball
rolling.
I make the query for sticky posts honor `$where` and `$join` clauses of
the parent query. Really don't know whether this is the expected behavior
that Ryan has in mind, or if it has any performance implications, but it
works fine in my testing environment and solves the reporter's issue.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14825#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list