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

Built from https://develop.svn.wordpress.org/trunk@26799


git-svn-id: http://core.svn.wordpress.org/trunk@26686 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-12-08 07:28:10 +00:00
parent d2cb57b806
commit 5b5a31e78e
2 changed files with 4 additions and 3 deletions

View File

@ -13,7 +13,10 @@ $title = __( 'About' );
list( $display_version ) = explode( '-', $wp_version );
wp_enqueue_script( 'about' );
// Temporary 3.8 hack: We want to use user-profile for the color schemes but don't need the heavy zxcvbn.
wp_deregister_script( 'zxcvbn-async' );
wp_register_script( 'zxcvbn-async', true );
wp_enqueue_script( 'user-profile' );
include( ABSPATH . 'wp-admin/admin-header.php' );
?>

View File

@ -331,8 +331,6 @@ function wp_default_scripts( &$scripts ) {
$scripts->add( 'user-suggest', "/wp-admin/js/user-suggest$suffix.js", array( 'jquery-ui-autocomplete' ), false, 1 );
$scripts->add( 'about', false, array( 'user-profile' ), false );
$scripts->add( 'admin-bar', "/wp-includes/js/admin-bar$suffix.js", array(), false, 1 );
$scripts->add( 'wplink', "/wp-includes/js/wplink$suffix.js", array( 'jquery', 'wpdialogs' ), false, 1 );