equal
deleted
inserted
replaced
14 * |
14 * |
15 * @global int $blog_id The current site ID. |
15 * @global int $blog_id The current site ID. |
16 * @global string $wp_version The WordPress version string. |
16 * @global string $wp_version The WordPress version string. |
17 */ |
17 */ |
18 function wp_initial_constants() { |
18 function wp_initial_constants() { |
19 global $blog_id; |
19 global $blog_id, $wp_version; |
20 |
20 |
21 /**#@+ |
21 /**#@+ |
22 * Constants for expressing human-readable data sizes in their respective number of bytes. |
22 * Constants for expressing human-readable data sizes in their respective number of bytes. |
23 * |
23 * |
24 * @since 4.4.0 |
24 * @since 4.4.0 |
97 } |
97 } |
98 |
98 |
99 // Add define( 'SCRIPT_DEBUG', true ); to wp-config.php to enable loading of non-minified, |
99 // Add define( 'SCRIPT_DEBUG', true ); to wp-config.php to enable loading of non-minified, |
100 // non-concatenated scripts and stylesheets. |
100 // non-concatenated scripts and stylesheets. |
101 if ( ! defined( 'SCRIPT_DEBUG' ) ) { |
101 if ( ! defined( 'SCRIPT_DEBUG' ) ) { |
102 if ( ! empty( $GLOBALS['wp_version'] ) ) { |
102 if ( ! empty( $wp_version ) ) { |
103 $develop_src = false !== strpos( $GLOBALS['wp_version'], '-src' ); |
103 $develop_src = false !== strpos( $wp_version, '-src' ); |
104 } else { |
104 } else { |
105 $develop_src = false; |
105 $develop_src = false; |
106 } |
106 } |
107 |
107 |
108 define( 'SCRIPT_DEBUG', $develop_src ); |
108 define( 'SCRIPT_DEBUG', $develop_src ); |
407 * @since 3.0.0 |
407 * @since 3.0.0 |
408 * |
408 * |
409 * @see WP_Theme::get_core_default_theme() |
409 * @see WP_Theme::get_core_default_theme() |
410 */ |
410 */ |
411 if ( ! defined( 'WP_DEFAULT_THEME' ) ) { |
411 if ( ! defined( 'WP_DEFAULT_THEME' ) ) { |
412 define( 'WP_DEFAULT_THEME', 'twentytwenty' ); |
412 define( 'WP_DEFAULT_THEME', 'twentytwentyone' ); |
413 } |
413 } |
414 |
414 |
415 } |
415 } |