Make WordPress Core


Ignore:
Timestamp:
08/20/2008 09:42:31 PM (16 years ago)
Author:
ryan
Message:

Collapse crazyhorse to trunk. Incoming! see #7552

File:
1 edited

Legend:

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

    r8656 r8691  
    2323
    2424if ( empty($action) ) {
    25     if ( isset($_GET['deleteit']) )
    26         $action = 'delete';
    27     elseif ( isset($_GET['changeit']) && !empty($_GET['new_role']) )
     25    if ( isset($_GET['changeit']) && !empty($_GET['new_role']) )
    2826        $action = 'promote';
    2927}
     
    259257<form id="posts-filter" action="" method="get">
    260258    <?php if ( $wp_user_search->is_search() ) : ?>
    261         <h2><?php printf(__('Users Matching "%s"'), wp_specialchars($wp_user_search->search_term)); ?></h2>
     259        <h2><?php printf( current_user_can('create_users') ? __('Users Matching "%2$s" (<a href="%1$s">Add New</a>)') : __('Add New'), '#add-new-user', wp_specialchars($wp_user_search->search_term) ); ?></h2>
    262260    <?php else : ?>
    263         <h2><?php _e('Manage Users'); ?></h2>
     261        <h2><?php printf( current_user_can('create_users') ? __('Users (<a href="%s">Add New</a>)') : __('Add New'), '#add-new-user' ); ?></h2>
    264262    <?php endif; ?>
    265263
     
    302300?>
    303301</ul>
     302
    304303    <p id="post-search">
    305304    <label class="hidden" for="post-search-input"><?php _e( 'Search Users' ); ?>:</label>
     
    315314
    316315<div class="alignleft">
    317 <input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button-secondary delete" />
     316<select name="action">
     317<option value="" selected><?php _e('Actions'); ?></option>
     318<option value="delete"><?php _e('Delete'); ?></option>
     319</select>
     320<input type="submit" value="<?php _e('Apply'); ?>" name="doaction" class="button-secondary action" />
    318321<label class="hidden" for="new_role"><?php _e('Change role to&hellip;') ?></label><select name="new_role" id="new_role"><option value=''><?php _e('Change role to&hellip;') ?></option>"<?php wp_dropdown_roles(); ?></select>
    319322<input type="submit" value="<?php _e('Change'); ?>" name="changeit" class="button-secondary" />
Note: See TracChangeset for help on using the changeset viewer.