diff --git a/wp-includes/load.php b/wp-includes/load.php index e38fdc66c9..8cc14e06db 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -159,11 +159,17 @@ function wp_get_environment_type() { // Add a note about the deprecated WP_ENVIRONMENT_TYPES constant. if ( defined( 'WP_ENVIRONMENT_TYPES' ) && function_exists( '_deprecated_argument' ) ) { + if ( function_exists( '__' ) ) { + /* translators: %s: WP_ENVIRONMENT_TYPES */ + $message = sprintf( __( 'The %s constant is no longer supported.' ), 'WP_ENVIRONMENT_TYPES' ); + } else { + $message = sprintf( 'The %s constant is no longer supported.', 'WP_ENVIRONMENT_TYPES' ); + } + _deprecated_argument( 'define()', '5.5.1', - /* translators: %s: WP_ENVIRONMENT_TYPES */ - sprintf( __( 'The %s constant is no longer supported.' ), 'WP_ENVIRONMENT_TYPES' ) + $message ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 20e44dcf6a..6bd11823eb 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-alpha-48894'; +$wp_version = '5.6-alpha-48895'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.