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