WordPress.org

Make WordPress Core

Ticket #19609: 19609.3.diff

File 19609.3.diff, 685 bytes (added by ocean90, 6 years ago)
  • src/wp-admin/includes/class-wp-posts-list-table.php

     
    174174                                $total_items = $post_counts[ $_REQUEST['post_status'] ];
    175175                        } elseif ( isset( $_REQUEST['show_sticky'] ) && $_REQUEST['show_sticky'] ) {
    176176                                $total_items = $this->sticky_posts_count;
     177                        } elseif ( isset( $_REQUEST['author'] ) && $_REQUEST['author'] === get_current_user_id() ) {
     178                                $total_items = $this->user_posts_count;
    177179                        } else {
    178180                                $total_items = array_sum( $post_counts );
    179181