Make WordPress Core

Ticket #25201: 25201.3.diff

File 25201.3.diff, 736 bytes (added by nacin, 11 years ago)
  • src/wp-includes/script-loader.php

     
    311311
    312312        $scripts->add( 'zxcvbn-async', "/wp-includes/js/zxcvbn-async$suffix.js", array(), '1.0' );
    313313        did_action( 'init' ) && $scripts->localize( 'zxcvbn-async', '_zxcvbnSettings', array(
    314                 'src' => includes_url( '/js/zxcvbn.min.js' ),
     314                'src' => site_url() ? includes_url( '/js/zxcvbn.min.js' ) : $scripts->base_url . '/wp-includes/js/zxcvbn.min.js',
    315315        ) );
    316316
    317317        $scripts->add( 'password-strength-meter', "/wp-admin/js/password-strength-meter$suffix.js", array( 'jquery', 'zxcvbn-async' ), false, 1 );