Make WordPress Core

Changeset 15781


Ignore:
Timestamp:
10/12/2010 08:32:41 PM (14 years ago)
Author:
scribu
Message:

Revert part of [15780] included by accident. See #5919

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r15780 r15781  
    335335}
    336336
    337 // TODO: Eliminate duplicated code from wp_default_scripts()
    338 function load_password_strength_meter() {
    339     if ( !$guessurl = site_url() )
    340         $guessurl = wp_guess_url();
    341 
    342     $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '.dev' : '';
    343 
    344     wp_enqueue_script( 'password-strength-meter', $guessurl . "/wp-admin/js/password-strength-meter$suffix.js", array('jquery'), '20100331' );
    345     wp_localize_script( 'password-strength-meter', 'pwsL10n', array(
    346         'empty' => __('Strength indicator'),
    347         'short' => __('Very weak'),
    348         'bad' => __('Weak'),
    349         /* translators: password strength */
    350         'good' => _x('Medium', 'password strength'),
    351         'strong' => __('Strong'),
    352         'mismatch' => __('Mismatch'),
    353         'l10n_print_after' => 'try{convertEntities(pwsL10n);}catch(e){};'
    354     ) );
    355 
    356     wp_print_scripts( array('password-strength-meter') );
    357 }
    358 
    359337//
    360338// Main
     
    470448    login_header(__('Reset Password'), '<p class="message reset-pass">' . __('Reset your password') . '</p>', $errors );
    471449
    472     load_password_strength_meter();
    473 
    474450?>
    475451<form name="resetpassform" id="resetpassform" action="<?php echo site_url('wp-login.php?action=resetpass&key=' . urlencode($_GET['key']) . '&login=' . urlencode($_GET['login']), 'login_post') ?>" method="post">
     
    482458        <input type="password" name="pass2" id="user_pass" class="input" size="20" value="" autocomplete="off" /></label>
    483459    </p>
    484 
    485     <div id="pass-strength-result"><?php _e('Strength indicator'); ?></div>
    486     <p class="description indicator-hint"><?php _e('Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ &amp; ).'); ?></p>
    487460
    488461    <br class="clear" />
Note: See TracChangeset for help on using the changeset viewer.