[wp-trac] [WordPress Trac] #13365: WP_Query, author_name, and sticky posts
WordPress Trac
wp-trac at lists.automattic.com
Thu Aug 30 00:17:35 UTC 2012
#13365: WP_Query, author_name, and sticky posts
--------------------------------------------+------------------------------
Reporter: eryanv | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 2.9.2
Severity: normal | Resolution:
Keywords: reporter-feedback dev-feedback |
--------------------------------------------+------------------------------
Changes (by wonderboymusic):
* keywords: reporter-feedback => reporter-feedback dev-feedback
Comment:
Stickies will only show up if the query does NOT meet any of these
conditions:
{{{
$this->is_singular
|| $this->is_archive
|| $this->is_search
|| $this->is_feed
|| $this->is_trackback
|| $this->is_404
|| $this->is_admin
|| $this->is_comments_popup
|| $this->is_robots
}}}
This is unbelievably confusing since {{{is_archive}}} expands to:
{{{
$this->is_post_type_archive
|| $this->is_date
|| $this->is_author
|| $this->is_category
|| $this->is_tag
|| $this->is_tax
}}}
Once you start adding query parameters, some of these condition get met
immediately.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13365#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list