Make WordPress Core


Ignore:
Timestamp:
08/28/2013 04:08:19 PM (11 years ago)
Author:
nacin
Message:

Use Dropbox's zxcvbn library for our password meter.

The library was added in [25156].

props duck_.
see #21737.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r25040 r25157  
    310310    ) );
    311311
    312     $scripts->add( 'password-strength-meter', "/wp-admin/js/password-strength-meter$suffix.js", array('jquery'), false, 1 );
     312    $scripts->add( 'zxcvbn-async', "/wp-includes/js/zxcvbn-async$suffix.js", array(), '1.0' );
     313    did_action( 'init' ) && $scripts->localize( 'zxcvbn-async', '_zxcvbnSettings', array(
     314        'src' => includes_url( '/js/zxcvbn.min.js' ),
     315    ) );
     316
     317    $scripts->add( 'password-strength-meter', "/wp-admin/js/password-strength-meter$suffix.js", array( 'jquery', 'zxcvbn-async' ), false, 1 );
    313318    did_action( 'init' ) && $scripts->localize( 'password-strength-meter', 'pwsL10n', array(
    314319        'empty' => __('Strength indicator'),
Note: See TracChangeset for help on using the changeset viewer.