diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-includes/default-constants.php --- a/wp/wp-includes/default-constants.php Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-includes/default-constants.php Fri Sep 05 18:40:08 2025 +0200 @@ -77,17 +77,28 @@ define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); // No trailing slash, full paths only - WP_CONTENT_URL is defined further down. } + /* + * Add define( 'WP_DEVELOPMENT_MODE', 'core' ), or define( 'WP_DEVELOPMENT_MODE', 'plugin' ), or + * define( 'WP_DEVELOPMENT_MODE', 'theme' ), or define( 'WP_DEVELOPMENT_MODE', 'all' ) to wp-config.php + * to signify development mode for WordPress core, a plugin, a theme, or all three types respectively. + */ + if ( ! defined( 'WP_DEVELOPMENT_MODE' ) ) { + define( 'WP_DEVELOPMENT_MODE', '' ); + } + // Add define( 'WP_DEBUG', true ); to wp-config.php to enable display of notices during development. if ( ! defined( 'WP_DEBUG' ) ) { - if ( 'development' === wp_get_environment_type() ) { + if ( wp_get_development_mode() || 'development' === wp_get_environment_type() ) { define( 'WP_DEBUG', true ); } else { define( 'WP_DEBUG', false ); } } - // Add define( 'WP_DEBUG_DISPLAY', null ); to wp-config.php to use the globally configured setting - // for 'display_errors' and not force errors to be displayed. Use false to force 'display_errors' off. + /* + * Add define( 'WP_DEBUG_DISPLAY', null ); to wp-config.php to use the globally configured setting + * for 'display_errors' and not force errors to be displayed. Use false to force 'display_errors' off. + */ if ( ! defined( 'WP_DEBUG_DISPLAY' ) ) { define( 'WP_DEBUG_DISPLAY', true ); } @@ -101,11 +112,13 @@ define( 'WP_CACHE', false ); } - // Add define( 'SCRIPT_DEBUG', true ); to wp-config.php to enable loading of non-minified, - // non-concatenated scripts and stylesheets. + /* + * Add define( 'SCRIPT_DEBUG', true ); to wp-config.php to enable loading of non-minified, + * non-concatenated scripts and stylesheets. + */ if ( ! defined( 'SCRIPT_DEBUG' ) ) { if ( ! empty( $wp_version ) ) { - $develop_src = false !== strpos( $wp_version, '-src' ); + $develop_src = str_contains( $wp_version, '-src' ); } else { $develop_src = false; } @@ -312,9 +325,10 @@ /** * @since 2.0.0 + * @since 6.6.0 The value has changed from false to an empty string. */ if ( ! defined( 'COOKIE_DOMAIN' ) ) { - define( 'COOKIE_DOMAIN', false ); + define( 'COOKIE_DOMAIN', '' ); } if ( ! defined( 'RECOVERY_MODE_COOKIE' ) ) { @@ -394,6 +408,8 @@ * Filesystem path to the current active template directory. * * @since 1.5.0 + * @deprecated 6.4.0 Use get_template_directory() instead. + * @see get_template_directory() */ define( 'TEMPLATEPATH', get_template_directory() ); @@ -401,6 +417,8 @@ * Filesystem path to the current active template stylesheet directory. * * @since 2.1.0 + * @deprecated 6.4.0 Use get_stylesheet_directory() instead. + * @see get_stylesheet_directory() */ define( 'STYLESHEETPATH', get_stylesheet_directory() ); @@ -414,7 +432,6 @@ * @see WP_Theme::get_core_default_theme() */ if ( ! defined( 'WP_DEFAULT_THEME' ) ) { - define( 'WP_DEFAULT_THEME', 'twentytwentytwo' ); + define( 'WP_DEFAULT_THEME', 'twentytwentyfour' ); } - }