diff --git a/wp-login.php b/wp-login.php index 59c4551f8..5d0bf1043 100644 --- a/wp-login.php +++ b/wp-login.php @@ -334,28 +334,6 @@ function register_new_user( $user_login, $user_email ) { return $user_id; } -// TODO: Eliminate duplicated code from wp_default_scripts() -function load_password_strength_meter() { - if ( !$guessurl = site_url() ) - $guessurl = wp_guess_url(); - - $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '.dev' : ''; - - wp_enqueue_script( 'password-strength-meter', $guessurl . "/wp-admin/js/password-strength-meter$suffix.js", array('jquery'), '20100331' ); - wp_localize_script( 'password-strength-meter', 'pwsL10n', array( - 'empty' => __('Strength indicator'), - 'short' => __('Very weak'), - 'bad' => __('Weak'), - /* translators: password strength */ - 'good' => _x('Medium', 'password strength'), - 'strong' => __('Strong'), - 'mismatch' => __('Mismatch'), - 'l10n_print_after' => 'try{convertEntities(pwsL10n);}catch(e){};' - ) ); - - wp_print_scripts( array('password-strength-meter') ); -} - // // Main // @@ -469,8 +447,6 @@ case 'rp' : login_header(__('Reset Password'), '
', $errors ); - load_password_strength_meter(); - ?>