Changeset 15781
- Timestamp:
- 10/12/2010 08:32:41 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-login.php
r15780 r15781 335 335 } 336 336 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 359 337 // 360 338 // Main … … 470 448 login_header(__('Reset Password'), '<p class="message reset-pass">' . __('Reset your password') . '</p>', $errors ); 471 449 472 load_password_strength_meter();473 474 450 ?> 475 451 <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"> … … 482 458 <input type="password" name="pass2" id="user_pass" class="input" size="20" value="" autocomplete="off" /></label> 483 459 </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 ! " ? $ % ^ & ).'); ?></p>487 460 488 461 <br class="clear" />
Note: See TracChangeset
for help on using the changeset viewer.