WordPress.org

Make WordPress Core


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-includes/script-loader.php

    r15986 r15998  
    263263        $scripts->add_data( 'admin-custom-fields', 'group', 1 );
    264264
    265         $scripts->add( 'user-profile', "/wp-admin/js/user-profile$suffix.js", array('jquery'), '20101012' );
    266         $scripts->add_data( 'user-profile', 'group', 1 );
    267         $scripts->localize( 'user-profile', 'pwsL10n', array(
     265        $scripts->add( 'password-strength-meter', "/wp-admin/js/password-strength-meter$suffix.js", array('jquery'), '20101027' );
     266        $scripts->add_data( 'password-strength-meter', 'group', 1 );
     267        $scripts->localize( 'password-strength-meter', 'pwsL10n', array(
    268268            'empty' => __('Strength indicator'),
    269269            'short' => __('Very weak'),
     
    275275            'l10n_print_after' => 'try{convertEntities(pwsL10n);}catch(e){};'
    276276        ) );
     277
     278        $scripts->add( 'user-profile', "/wp-admin/js/user-profile$suffix.js", array( 'jquery', 'password-strength-meter' ), '20100925' );
     279        $scripts->add_data( 'user-profile', 'group', 1 );
    277280
    278281        $scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array('wp-lists', 'list-table', 'jquery-ui-resizable', 'quicktags'), '20100818' );
Note: See TracChangeset for help on using the changeset viewer.