mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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:
parent
d2cb57b806
commit
5b5a31e78e
@ -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' );
|
||||
?>
|
||||
|
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user