WordPress.org

Make WordPress Core

Ticket #21015: 21015.diff

File 21015.diff, 471 bytes (added by CoenJacobs, 3 years ago)

Filters out the posts with 'auto-draft' as status in counting query

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

     
    363363                        SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month 
    364364                        FROM $wpdb->posts 
    365365                        WHERE post_type = %s 
     366                        AND post_status != 'auto-draft' 
    366367                        ORDER BY post_date DESC 
    367368                ", $post_type ) ); 
    368369