Changeset 15780 for trunk/wp-login.php
- Timestamp:
- 10/12/2010 08:29:19 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-login.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-login.php
r15776 r15780 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 337 359 // 338 360 // Main … … 385 407 case 'lostpassword' : 386 408 case 'retrievepassword' : 409 387 410 if ( $http_post ) { 388 411 $errors = retrieve_password(); … … 446 469 447 470 login_header(__('Reset Password'), '<p class="message reset-pass">' . __('Reset your password') . '</p>', $errors ); 471 472 load_password_strength_meter(); 473 448 474 ?> 449 475 <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"> … … 456 482 <input type="password" name="pass2" id="user_pass" class="input" size="20" value="" autocomplete="off" /></label> 457 483 </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 458 488 <br class="clear" /> 459 489 <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>
Note: See TracChangeset
for help on using the changeset viewer.