mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
List Tables: only hide bulk actions when there are no items, don't hide all of the extra table nav.
Fixes #33824. git-svn-id: https://develop.svn.wordpress.org/trunk@34707 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -217,7 +217,7 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||
$id = 'bottom' === $which ? 'new_role2' : 'new_role';
|
||||
?>
|
||||
<div class="alignleft actions">
|
||||
<?php if ( current_user_can( 'promote_users' ) ) : ?>
|
||||
<?php if ( current_user_can( 'promote_users' ) && $this->has_items() ) : ?>
|
||||
<label class="screen-reader-text" for="<?php echo $id ?>"><?php _e( 'Change role to…' ) ?></label>
|
||||
<select name="<?php echo $id ?>" id="<?php echo $id ?>">
|
||||
<option value=""><?php _e( 'Change role to…' ) ?></option>
|
||||
|
||||
Reference in New Issue
Block a user