[wp-trac] [WordPress Trac] #15934: Sticky post count also count posts in trash
WordPress Trac
wp-trac at lists.automattic.com
Tue Dec 21 14:45:03 UTC 2010
#15934: Sticky post count also count posts in trash
----------------------------+------------------
Reporter: garyc40 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.1
Component: Administration | Version: 3.1
Severity: minor | Resolution:
Keywords: |
----------------------------+------------------
Changes (by nacin):
* milestone: Awaiting Review => 3.1
Comment:
This is the query we're using:
SELECT COUNT( 1 ) FROM $wpdb->posts WHERE post_type = %s AND ID IN
($sticky_posts)
The user posts query makes an exception for trash and auto-draft. We
shouldn't need to worry about auto-drafts here.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15934#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list