Changeset 32935
- Timestamp:
- 06/25/2015 02:28:50 AM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-editor.php
r32899 r32935 543 543 } 544 544 545 $suffix = defined( 'SCRIPT_DEBUG' ) &&SCRIPT_DEBUG ? '' : '.min';545 $suffix = SCRIPT_DEBUG ? '' : '.min'; 546 546 $version = 'ver=' . $wp_version; 547 547 $dashicons = includes_url( "css/dashicons$suffix.css?$version" ); … … 1135 1135 ); 1136 1136 1137 $suffix = ( defined('SCRIPT_DEBUG') && SCRIPT_DEBUG )? '' : '.min';1137 $suffix = SCRIPT_DEBUG ? '' : '.min'; 1138 1138 1139 1139 /** -
trunk/src/wp-includes/default-constants.php
r32800 r32935 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 -
trunk/src/wp-includes/formatting.php
r32900 r32935 4256 4256 4257 4257 $version = 'ver=' . $wp_version; 4258 $develop_src = false !== strpos( $wp_version, '-src' ); 4259 4260 if ( $develop_src || ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ) { 4258 4259 if ( SCRIPT_DEBUG ) { 4261 4260 $settings['source'] = array( 4262 4261 /** This filter is documented in wp-includes/class.wp-scripts.php */ -
trunk/src/wp-includes/general-template.php
r32882 r32935 2842 2842 function register_admin_color_schemes() { 2843 2843 $suffix = is_rtl() ? '-rtl' : ''; 2844 $suffix .= defined( 'SCRIPT_DEBUG' ) &&SCRIPT_DEBUG ? '' : '.min';2844 $suffix .= SCRIPT_DEBUG ? '' : '.min'; 2845 2845 2846 2846 wp_admin_css_color( 'fresh', _x( 'Default', 'admin color scheme' ), -
trunk/src/wp-settings.php
r32116 r32935 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
Note: See TracChangeset
for help on using the changeset viewer.