Changes from branches/3.1/wp-admin/users.php at r17440 to trunk/wp-admin/users.php at r17977
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/users.php
r17440 r17977 26 26 '<p>' . __('To add a new user for your site, click the Add New button at the top of the screen or Add New in the Users menu section.') . '</p>' . 27 27 '<p><strong>' . __('For more information:') . '</strong></p>' . 28 '<p>' . __('<a href="http://codex.wordpress.org/Users_ Users_SubPanel" target="_blank">Documentation on Managing Users</a>') . '</p>' .28 '<p>' . __('<a href="http://codex.wordpress.org/Users_Screen" target="_blank">Documentation on Managing Users</a>') . '</p>' . 29 29 '<p>' . __('<a href="http://codex.wordpress.org/Roles_and_Capabilities" target="_blank">Descriptions of Roles and Capabilities</a>') . '</p>' . 30 30 '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' … … 151 151 $userids = array(intval($_REQUEST['user'])); 152 152 else 153 $userids = $_REQUEST['users'];153 $userids = (array) $_REQUEST['users']; 154 154 155 155 include ('admin-header.php'); … … 162 162 <?php screen_icon(); ?> 163 163 <h2><?php _e('Delete Users'); ?></h2> 164 <p><?php _e('You have specified these users for deletion:'); ?></p>164 <p><?php echo _n( 'You have specified this user for deletion:', 'You have specified these users for deletion:', count( $userids ) ); ?></p> 165 165 <ul> 166 166 <?php 167 $go_delete = false;168 foreach ( (array)$userids as $id ) {167 $go_delete = 0; 168 foreach ( $userids as $id ) { 169 169 $id = (int) $id; 170 170 $user = new WP_User($id); … … 173 173 } else { 174 174 echo "<li><input type=\"hidden\" name=\"users[]\" value=\"" . esc_attr($id) . "\" />" . sprintf(__('ID #%1s: %2s'), $id, $user->user_login) . "</li>\n"; 175 $go_delete = true;175 $go_delete++; 176 176 } 177 177 } … … 179 179 </ul> 180 180 <?php if ( $go_delete ) : ?> 181 <fieldset><p><legend><?php _e('What should be done with posts and links owned by this user?'); ?></legend></p>181 <fieldset><p><legend><?php echo _n( 'What should be done with posts and links owned by this user?', 'What should be done with posts and links owned by these users?', $go_delete ); ?></legend></p> 182 182 <ul style="list-style:none;"> 183 183 <li><label><input type="radio" id="delete_option0" name="delete_option" value="delete" checked="checked" /> … … 361 361 echo esc_html( $title ); 362 362 if ( current_user_can( 'create_users' ) ) { ?> 363 <a href="user-new.php" class=" buttonadd-new-h2"><?php echo esc_html_x( 'Add New', 'user' ); ?></a>363 <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'user' ); ?></a> 364 364 <?php } elseif ( is_multisite() && current_user_can( 'promote_users' ) ) { ?> 365 <a href="user-new.php" class=" buttonadd-new-h2"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a>365 <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a> 366 366 <?php } 367 367 … … 379 379 </form> 380 380 381 <?php382 if ( is_multisite() ) {383 foreach ( array('user_login' => 'user_login', 'first_name' => 'user_firstname', 'last_name' => 'user_lastname', 'email' => 'user_email', 'url' => 'user_uri', 'role' => 'user_role') as $formpost => $var ) {384 $var = 'new_' . $var;385 $$var = isset($_REQUEST[$formpost]) ? esc_attr(stripslashes($_REQUEST[$formpost])) : '';386 }387 unset($name);388 }389 ?>390 391 381 <br class="clear" /> 392 382 </div>
Note: See TracChangeset
for help on using the changeset viewer.