WordPress.org

Make WordPress Core

Changeset 26799


Ignore:
Timestamp:
12/08/2013 07:27:32 AM (8 years ago)
Author:
nacin
Message:

About page: Don't load zxcvbn, which is a dependency of an unused piece of user-profile.js.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/about.php

    r26795 r26799  
    1414list( $display_version ) = explode( '-', $wp_version );
    1515
    16 wp_enqueue_script( 'about' );
     16// Temporary 3.8 hack: We want to use user-profile for the color schemes but don't need the heavy zxcvbn.
     17wp_deregister_script( 'zxcvbn-async' );
     18wp_register_script( 'zxcvbn-async', true );
     19wp_enqueue_script( 'user-profile' );
    1720
    1821include( ABSPATH . 'wp-admin/admin-header.php' );
  • trunk/src/wp-includes/script-loader.php

    r26781 r26799  
    332332    $scripts->add( 'user-suggest', "/wp-admin/js/user-suggest$suffix.js", array( 'jquery-ui-autocomplete' ), false, 1 );
    333333
    334     $scripts->add( 'about', false, array( 'user-profile' ), false );
    335 
    336334    $scripts->add( 'admin-bar', "/wp-includes/js/admin-bar$suffix.js", array(), false, 1 );
    337335
Note: See TracChangeset for help on using the changeset viewer.