Changeset 17097
- Timestamp:
- 12/21/2010 02:58:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-posts-list-table.php
r17088 r17097 71 71 if ( 'post' == $post_type && $sticky_posts = get_option( 'sticky_posts' ) ) { 72 72 $sticky_posts = implode( ', ', array_map( 'absint', (array) $sticky_posts ) ); 73 $this->sticky_posts_count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT( 1 ) FROM $wpdb->posts WHERE post_type = %s AND ID IN ($sticky_posts)", $post_type ) );73 $this->sticky_posts_count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT( 1 ) FROM $wpdb->posts WHERE post_type = %s AND post_status != 'trash' AND ID IN ($sticky_posts)", $post_type ) ); 74 74 } 75 75
Note: See TracChangeset
for help on using the changeset viewer.