From 1f6ba467ca83a7e8695ef871e64073b2531ca003 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Mon, 26 Jan 2009 13:24:44 +0000 Subject: [PATCH] Load the minified versions of the scripts by default, define('SCRIPT_DEBUG', true); can be used to load the development versions git-svn-id: https://develop.svn.wordpress.org/trunk@10443 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/script-loader.php | 2 +- wp-settings.php | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index b37ba09cb1..5380de0795 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -113,7 +113,7 @@ function wp_default_scripts( &$scripts ) { $scripts->add( 'cropper', '/wp-includes/js/crop/cropper.js', array('scriptaculous-dragdrop'), '20070118'); - $scripts->add( 'jquery', '/wp-includes/js/jquery/jquery.js', false, '1.3'); + $scripts->add( 'jquery', '/wp-includes/js/jquery/jquery.js', false, '1.3.1'); $scripts->add( 'jquery-ui-core', '/wp-includes/js/jquery/ui.core.js', array('jquery'), '1.5.2' ); $scripts->add_data( 'jquery-ui-core', 'group', 1 ); diff --git a/wp-settings.php b/wp-settings.php index 8778a0c960..553c67d4b7 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -210,11 +210,6 @@ if (defined('WP_DEBUG') and WP_DEBUG == true) { error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE); } -// When this is defined and set to true the non-minified versions of the Javascripts will be used. -// Add define('SCRIPT_DEBUG', false); to wp-config.php to test the minified versions. -if ( !defined('SCRIPT_DEBUG') ) - define('SCRIPT_DEBUG', true); - // For an advanced caching plugin to use, static because you would only want one if ( defined('WP_CACHE') ) @include WP_CONTENT_DIR . '/advanced-cache.php';