Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r17440 r17977  
    2626    '<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>' .
    2727    '<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>' .
    2929    '<p>' . __('<a href="http://codex.wordpress.org/Roles_and_Capabilities" target="_blank">Descriptions of Roles and Capabilities</a>') . '</p>' .
    3030    '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
     
    151151        $userids = array(intval($_REQUEST['user']));
    152152    else
    153         $userids = $_REQUEST['users'];
     153        $userids = (array) $_REQUEST['users'];
    154154
    155155    include ('admin-header.php');
     
    162162<?php screen_icon(); ?>
    163163<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>
    165165<ul>
    166166<?php
    167     $go_delete = false;
    168     foreach ( (array) $userids as $id ) {
     167    $go_delete = 0;
     168    foreach ( $userids as $id ) {
    169169        $id = (int) $id;
    170170        $user = new WP_User($id);
     
    173173        } else {
    174174            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++;
    176176        }
    177177    }
     
    179179    </ul>
    180180<?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>
    182182    <ul style="list-style:none;">
    183183        <li><label><input type="radio" id="delete_option0" name="delete_option" value="delete" checked="checked" />
     
    361361echo esc_html( $title );
    362362if ( current_user_can( 'create_users' ) ) { ?>
    363     <a href="user-new.php" class="button add-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>
    364364<?php } elseif ( is_multisite() && current_user_can( 'promote_users' ) ) { ?>
    365     <a href="user-new.php" class="button add-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>
    366366<?php }
    367367
     
    379379</form>
    380380
    381 <?php
    382 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 
    391381<br class="clear" />
    392382</div>
Note: See TracChangeset for help on using the changeset viewer.