[wp-trac] [WordPress Trac] #13943: Sticky posts are sticky posts even if they are trashed
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 17 11:44:48 UTC 2010
#13943: Sticky posts are sticky posts even if they are trashed
--------------------------+-------------------------------------------------
Reporter: bi0xid | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Post Types | Version:
Severity: normal | Keywords: reporter-feedback, sticky posts
--------------------------+-------------------------------------------------
Comment(by dd32):
I believe that code may even show "Draft Stickies".
I'd agree with that that option is not destined to be used that way.
IMO, you should only use it within a query, for example:
{{{
$posts = get_posts( array('post_status' => 'publish', 'post__in' =>
get_option( 'sticky_posts' ) ) );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13943#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list