Ticket #19295: class-wp-users-list-table.php.patch
| File class-wp-users-list-table.php.patch, 995 bytes (added by jakemgold, 8 months ago) |
|---|
-
wp-admin/includes/class-wp-users-list-table.php
136 136 function extra_tablenav( $which ) { 137 137 if ( 'top' != $which ) 138 138 return; 139 if ( ! current_user_can( 'promote_users' ) )140 return;141 139 ?> 142 140 <div class="alignleft actions"> 141 <?php if ( current_user_can( 'promote_users' ) ) : ?> 143 142 <label class="screen-reader-text" for="new_role"><?php _e( 'Change role to…' ) ?></label> 144 143 <select name="new_role" id="new_role"> 145 144 <option value=''><?php _e( 'Change role to…' ) ?></option> 146 145 <?php wp_dropdown_roles(); ?> 147 146 </select> 148 <?php submit_button( __( 'Change' ), 'small', 'changeit', false ); ?> 147 <?php 148 submit_button( __( 'Change' ), 'small', 'changeit', false ); 149 endif; 150 151 do_action( 'restrict_manage_users' ); 152 ?> 149 153 </div> 150 154 <?php 151 155 }
