WordPress.org

Make WordPress Core

Changeset 6990


Ignore:
Timestamp:
02/22/2008 11:36:53 PM (12 years ago)
Author:
ryan
Message:

Add bulk role change to users.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/users.php

    r6980 r6990  
    1212$update = '';
    1313
    14 if ( empty($action) && isset($_GET['deleteit']) )
    15     $action = 'delete';
     14if ( empty($action) ) {
     15    if ( isset($_GET['deleteit']) )
     16        $action = 'delete';
     17    elseif ( isset($_GET['changeit']) && !empty($_GET['new_role']) )
     18        $action = 'promote';
     19}
    1620
    1721if ( empty($_REQUEST) ) {
     
    295299<div style="float: left">
    296300<input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button-secondary" />
     301<select name="new_role"><option value=''><?php _e('Change role to&hellip;') ?></option>"<?php wp_dropdown_roles(); ?></select>
     302<input type="submit" value="<?php _e('Change'); ?>" name="changeit" class="button-secondary" />
    297303<?php wp_nonce_field('bulk-users'); ?>
    298304</div>
Note: See TracChangeset for help on using the changeset viewer.