Make WordPress Core

Changeset 34707


Ignore:
Timestamp:
09/30/2015 12:46:15 AM (9 years ago)
Author:
wonderboymusic
Message:

List Tables: only hide bulk actions when there are no items, don't hide all of the extra table nav.

Fixes #33824.

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-list-table.php

    r34467 r34707  
    11421142            wp_nonce_field( 'bulk-' . $this->_args['plural'] );
    11431143        }
    1144         if ( $this->has_items() ) : ?>
     1144        ?>
    11451145    <div class="tablenav <?php echo esc_attr( $which ); ?>">
    11461146
     1147        <?php if ( $this->has_items() ): ?>
    11471148        <div class="alignleft actions bulkactions">
    11481149            <?php $this->bulk_actions( $which ); ?>
    11491150        </div>
    1150 <?php
     1151        <?php endif;
    11511152        $this->extra_tablenav( $which );
    11521153        $this->pagination( $which );
     
    11561157    </div>
    11571158<?php
    1158         endif;
    11591159    }
    11601160
  • trunk/src/wp-admin/includes/class-wp-users-list-table.php

    r34636 r34707  
    218218    ?>
    219219    <div class="alignleft actions">
    220         <?php if ( current_user_can( 'promote_users' ) ) : ?>
     220        <?php if ( current_user_can( 'promote_users' ) && $this->has_items() ) : ?>
    221221        <label class="screen-reader-text" for="<?php echo $id ?>"><?php _e( 'Change role to&hellip;' ) ?></label>
    222222        <select name="<?php echo $id ?>" id="<?php echo $id ?>">
Note: See TracChangeset for help on using the changeset viewer.