WordPress.org

Make WordPress Core

Ticket #24869: 24869.diff

File 24869.diff, 1.1 KB (added by enej, 9 months ago)

patch that removed the selection of all.

  • 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 a798a2c..da1b51e 100644
    class WP_Posts_List_Table extends WP_List_Table { 
    145145                foreach ( get_post_stati( array('show_in_admin_all_list' => false) ) as $state ) 
    146146                        $total_posts -= $num_posts->$state; 
    147147 
    148                 $class = empty( $class ) && empty( $_REQUEST['post_status'] ) && empty( $_REQUEST['show_sticky'] ) ? ' class="current"' : ''; 
     148                $class = empty( $class ) && empty( $_REQUEST['post_status'] ) && empty( $_REQUEST['show_sticky'] ) && empty( $_REQUEST['author'] ) ? ' class="current"' : ''; 
    149149                $status_links['all'] = "<a href='edit.php?post_type=$post_type{$allposts}'$class>" . sprintf( _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_posts, 'posts' ), number_format_i18n( $total_posts ) ) . '</a>'; 
    150150 
    151151                foreach ( get_post_stati(array('show_in_admin_status_list' => true), 'objects') as $status ) {