Make WordPress Core

Ticket #15934: garyc40-15934.patch

File garyc40-15934.patch, 874 bytes (added by garyc40, 15 years ago)

there's a patch for that

  • wp-admin/includes/class-wp-posts-list-table.php

    diff --git wp-admin/includes/class-wp-posts-list-table.php wp-admin/includes/class-wp-posts-list-table.php
    index ca59392..801fb96 100644
    class WP_Posts_List_Table extends WP_List_Table { 
    7070
    7171                if ( 'post' == $post_type && $sticky_posts = get_option( 'sticky_posts' ) ) {
    7272                        $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 ) );
    7474                }
    7575
    7676                parent::WP_List_Table( array(