WordPress.org

Make WordPress Core

Ticket #9627: 9627.diff

File 9627.diff, 1.5 KB (added by Denis-de-Bernardy, 5 years ago)
  • wp-admin/user-edit.php

     
    7979<?php 
    8080} 
    8181 
    82 if ( $is_profile_page ) { 
    83         add_action('admin_head', 'profile_js'); 
    84         wp_enqueue_script('jquery'); 
    85         wp_enqueue_script('password-strength-meter'); 
    86 } 
     82add_action('admin_head', 'profile_js'); 
     83wp_enqueue_script('jquery'); 
     84wp_enqueue_script('password-strength-meter'); 
    8785 
    8886$title = $is_profile_page? __('Profile') : __('Edit User'); 
    8987if ( current_user_can('edit_users') && !$is_profile_page ) 
     
    357355        <th><label for="pass1"><?php _e('New Password'); ?></label></th> 
    358356        <td><input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" /> <?php _e("If you would like to change the password type a new one. Otherwise leave this blank."); ?><br /> 
    359357                <input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" /> <?php _e("Type your new password again."); ?><br /> 
    360         <?php if ( $is_profile_page ): ?> 
    361358                <div id="pass-strength-result"><?php _e('Strength indicator'); ?></div> 
    362                 <p><?php _e('Hint: Your password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ &amp; ).'); ?></p> 
    363         <?php endif; ?> 
     359                <p><?php _e('Hint: A password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ &amp; ).'); ?></p> 
    364360        </td> 
    365361</tr> 
    366362<?php endif; ?>