Ticket #32333: 32333.patch
File 32333.patch, 1.4 KB (added by , 10 years ago) |
---|
-
src/wp-includes/default-constants.php
71 71 if ( !defined('WP_CACHE') ) 72 72 define('WP_CACHE', false); 73 73 74 // Add define('SCRIPT_DEBUG', true); to wp-config.php to enable loading of non-minified, 75 // non-concatenated scripts and stylesheets. 76 if ( ! defined( 'SCRIPT_DEBUG' ) ) { 77 if ( ! empty( $GLOBALS['wp_version'] ) ) { 78 $develop_src = false !== strpos( $GLOBALS['wp_version'], '-src' ); 79 } else { 80 $develop_src = false; 81 } 82 83 define( 'SCRIPT_DEBUG', $develop_src ); 84 } 85 74 86 /** 75 87 * Private 76 88 */ -
src/wp-settings.php
29 29 global $wp_version, $wp_db_version, $tinymce_version, $required_php_version, $required_mysql_version; 30 30 require( ABSPATH . WPINC . '/version.php' ); 31 31 32 // Set initial default constants including WP_MEMORY_LIMIT, WP_MAX_MEMORY_LIMIT, WP_DEBUG, WP_CONTENT_DIR and WP_CACHE.32 // Set initial default constants including WP_MEMORY_LIMIT, WP_MAX_MEMORY_LIMIT, WP_DEBUG, SCRIPT_DEBUG, WP_CONTENT_DIR and WP_CACHE. 33 33 wp_initial_constants(); 34 34 35 35 // Check for the required PHP version and for the MySQL extension or a database drop-in.