WordPress.org

Make WordPress Core

Ticket #16360: 16360.diff

File 16360.diff, 1.3 KB (added by nacin, 5 years ago)
  • wp-admin/users.php

     
    161161<p><?php _e('You have specified these users for deletion:'); ?></p> 
    162162<ul> 
    163163<?php 
    164         $go_delete = false; 
     164        $go_delete = 0; 
    165165        foreach ( (array) $userids as $id ) { 
    166166                $id = (int) $id; 
    167167                $user = new WP_User($id); 
     
    169169                        echo "<li>" . sprintf(__('ID #%1s: %2s <strong>The current user will not be deleted.</strong>'), $id, $user->user_login) . "</li>\n"; 
    170170                } else { 
    171171                        echo "<li><input type=\"hidden\" name=\"users[]\" value=\"" . esc_attr($id) . "\" />" . sprintf(__('ID #%1s: %2s'), $id, $user->user_login) . "</li>\n"; 
    172                         $go_delete = true; 
     172                        $go_delete++; 
    173173                } 
    174174        } 
    175175        ?> 
    176176        </ul> 
    177177<?php if ( $go_delete ) : ?> 
    178         <fieldset><p><legend><?php _e('What should be done with posts and links owned by this user?'); ?></legend></p> 
     178        <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> 
    179179        <ul style="list-style:none;"> 
    180180                <li><label><input type="radio" id="delete_option0" name="delete_option" value="delete" checked="checked" /> 
    181181                <?php _e('Delete all posts and links.'); ?></label></li>