Make WordPress Core

Ticket #38461: 38461.patch

File 38461.patch, 1.2 KB (added by johnbillion, 8 years ago)
  • src/wp-includes/script-loader.php

     
    403403                'mismatch' => _x( 'Mismatch', 'password mismatch' ),
    404404        ) );
    405405
    406         $scripts->add( 'user-profile', "/wp-admin/js/user-profile$suffix.js", array( 'jquery', 'password-strength-meter', 'wp-util' ), false, 1 );
     406        $scripts->add( 'user-profile', "/wp-admin/js/user-profile$suffix.js", array( 'jquery', 'password-strength-meter', 'wp-util', 'svg-painter' ), false, 1 );
    407407        did_action( 'init' ) && $scripts->localize( 'user-profile', 'userProfileL10n', array(
    408408                'warn'     => __( 'Your new password has not been saved.' ),
    409409                'warnWeak' => __( 'Confirm use of weak password' ),
  • src/wp-admin/admin-header.php

     
    6464wp_enqueue_style( 'colors' );
    6565wp_enqueue_style( 'ie' );
    6666wp_enqueue_script('utils');
    67 wp_enqueue_script( 'svg-painter' );
    6867
    6968$admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix);
    7069?>