Changeset 8691 for trunk/wp-admin/users.php
- Timestamp:
- 08/20/2008 09:42:31 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/users.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/users.php
r8656 r8691 23 23 24 24 if ( 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']) ) 28 26 $action = 'promote'; 29 27 } … … 259 257 <form id="posts-filter" action="" method="get"> 260 258 <?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> 262 260 <?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> 264 262 <?php endif; ?> 265 263 … … 302 300 ?> 303 301 </ul> 302 304 303 <p id="post-search"> 305 304 <label class="hidden" for="post-search-input"><?php _e( 'Search Users' ); ?>:</label> … … 315 314 316 315 <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" /> 318 321 <label class="hidden" for="new_role"><?php _e('Change role to…') ?></label><select name="new_role" id="new_role"><option value=''><?php _e('Change role to…') ?></option>"<?php wp_dropdown_roles(); ?></select> 319 322 <input type="submit" value="<?php _e('Change'); ?>" name="changeit" class="button-secondary" />
Note: See TracChangeset
for help on using the changeset viewer.