Make WordPress Core

Ticket #38741: 38741.12.diff

File 38741.12.diff, 1.3 KB (added by peterwilsoncc, 3 years ago)
  • src/wp-admin/includes/class-wp-posts-list-table.php

    diff --git a/src/wp-admin/includes/class-wp-posts-list-table.php b/src/wp-admin/includes/class-wp-posts-list-table.php
    index 99a84da59b..2d78b72dcd 100644
    a b class WP_Posts_List_Table extends WP_List_Table { 
    16531653                                <?php endif; // $bulk ?>
    16541654
    16551655                                <?php
    1656                                 if ( post_type_supports( $screen->post_type, 'author' ) && ! wp_is_large_user_count() ) {
    1657                                         $authors_dropdown = '';
     1656                                if ( post_type_supports( $screen->post_type, 'author' ) && wp_is_large_user_count() ) {
     1657                                        $authors_dropdown = '<select style="display:none !important;" name="post_author"></select>';
     1658                                        if ( ! $bulk ) {
     1659                                                echo $authors_dropdown;
     1660                                        }
     1661                                } elseif ( post_type_supports( $screen->post_type, 'author' ) && ! wp_is_large_user_count() ) {
     1662                                                $authors_dropdown = '';
    16581663
    16591664                                        if ( current_user_can( $post_type_object->cap->edit_others_posts ) ) {
    16601665                                                $users_opt = array(
    class WP_Posts_List_Table extends WP_List_Table { 
    17481753                                <div class="inline-edit-col">
    17491754
    17501755                                <?php
    1751                                 if ( post_type_supports( $screen->post_type, 'author' ) && ! wp_is_large_user_count() && $bulk ) {
     1756                                if ( post_type_supports( $screen->post_type, 'author' ) && $bulk ) {
    17521757                                        echo $authors_dropdown;
    17531758                                }
    17541759                                ?>