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

git-svn-id: http://svn.automattic.com/wordpress/trunk@15781 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu 2010-10-12 20:32:41 +00:00
parent 08e984e5e8
commit 013c8b9a93
1 changed files with 0 additions and 27 deletions

View File

@ -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'), '<p class="message reset-pass">' . __('Reset your password') . '</p>', $errors );
load_password_strength_meter();
?>
<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">
<p>
@ -482,9 +458,6 @@ case 'rp' :
<input type="password" name="pass2" id="user_pass" class="input" size="20" value="" autocomplete="off" /></label>
</p>
<div id="pass-strength-result"><?php _e('Strength indicator'); ?></div>
<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>
<br class="clear" />
<p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="<?php esc_attr_e('Reset Password'); ?>" tabindex="100" /></p>
</form>