mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
I18N: Remove admin notice when the WPLANG
constant is no longer necessary.
Introduced in [29630], this admin notice informs administrators (or network administrators on multisite installs) that the `WPLANG` constant is no longer needed when the locale returned by `get_locale()` does not match. After 5 years, the notice is being removed to avoid causing confusion for non-technical users. The `_deprecated_argument()` call will persist to inform developers of the issue within log files. Props flixos90, iworks, ocean90. Fixes #39675. Built from https://develop.svn.wordpress.org/trunk@44946 git-svn-id: http://core.svn.wordpress.org/trunk@44777 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
18754216be
commit
289233ee46
@ -183,14 +183,6 @@ if ( ! empty( $languages ) || ! empty( $translations ) ) {
|
||||
|
||||
// Add note about deprecated WPLANG constant.
|
||||
if ( defined( 'WPLANG' ) && ( '' !== WPLANG ) && $locale !== WPLANG ) {
|
||||
if ( is_multisite() && current_user_can( 'manage_network_options' )
|
||||
|| ! is_multisite() && current_user_can( 'manage_options' ) ) {
|
||||
?>
|
||||
<p class="description">
|
||||
<strong><?php _e( 'Note:' ); ?></strong> <?php printf( __( 'The %1$s constant in your %2$s file is no longer needed.' ), '<code>WPLANG</code>', '<code>wp-config.php</code>' ); ?>
|
||||
</p>
|
||||
<?php
|
||||
}
|
||||
_deprecated_argument( 'define()', '4.0.0', sprintf( __( 'The %1$s constant in your %2$s file is no longer needed.' ), 'WPLANG', 'wp-config.php' ) );
|
||||
}
|
||||
?>
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.2-alpha-44945';
|
||||
$wp_version = '5.2-alpha-44946';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user