Changeset 16000 for trunk/wp-login.php
- Timestamp:
- 10/27/2010 06:57:10 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-login.php
r15999 r16000 135 135 ?> 136 136 <p id="backtoblog"><a href="<?php bloginfo('url'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('← Back to %s'), get_bloginfo('title', 'display' )); ?></a></p> 137 137 <?php do_action('login_footer'); ?> 138 138 </body> 139 139 </html> … … 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( 'user-profile', $guessurl . "/wp-admin/js/user-profile$suffix.js", array( 'jquery', 'password-strength-meter' ), '20100925' );345 wp_enqueue_script( 'password-strength-meter', $guessurl . "/wp-admin/js/password-strength-meter$suffix.js", array('jquery'), '20101027' );346 wp_localize_script( 'password-strength-meter', 'pwsL10n', array(347 'empty' => __('Strength indicator'),348 'short' => __('Very weak'),349 'bad' => __('Weak'),350 /* translators: password strength */351 'good' => _x('Medium', 'password strength'),352 'strong' => __('Strong'),353 'mismatch' => __('Mismatch'),354 'l10n_print_after' => 'try{convertEntities(pwsL10n);}catch(e){};'355 ) );356 357 wp_print_scripts( array('user-profile') );358 }359 360 337 // 361 338 // Main … … 469 446 } 470 447 448 wp_enqueue_script('utils'); 449 wp_enqueue_script('user-profile'); 450 471 451 login_header(__('Reset Password'), '<p class="message reset-pass">' . __('Enter your new password below.') . '</p>', $errors ); 472 473 load_password_strength_meter();474 452 475 453 ?>
Note: See TracChangeset
for help on using the changeset viewer.