WordPress.org

Make WordPress Core

Changeset 15998 for trunk/wp-login.php


Ignore:
Timestamp:
10/27/2010 06:39:20 AM (10 years ago)
Author:
westi
Message:

Bring back a seperate js file for the password strength meter and correctly mark it as a dependancy of the user profile code. See #5919.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r15904 r15998  
    342342    $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '.dev' : '';
    343343
    344     wp_enqueue_script( 'user-profile', $guessurl . "/wp-admin/js/user-profile$suffix.js", array('jquery'), '20100331' );
    345     wp_localize_script( 'user-profile', 'pwsL10n', array(
     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(
    346347        'empty' => __('Strength indicator'),
    347348        'short' => __('Very weak'),
Note: See TracChangeset for help on using the changeset viewer.