Opened 2 years ago
Closed 2 years ago
#15934 closed defect (bug) (fixed)
Sticky post count also count posts in trash
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1 |
| Component: | Administration | Version: | 3.1 |
| Severity: | minor | Keywords: | has-patch commit dev-reviewed |
| Cc: |
Description
Sticky posts in the trash can are still counted towards the Sticky count in wp-admin/edit.php, but they are not actually displayed in the Sticky list.
Attachments (1)
Change History (5)
- Milestone changed from Awaiting Review to 3.1
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.
Note: See
TracTickets for help on using
tickets.

there's a patch for that