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. git-svn-id: https://develop.svn.wordpress.org/trunk@44946 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b748341bf3
commit
0a875f0170
|
@ -183,14 +183,6 @@ if ( ! empty( $languages ) || ! empty( $translations ) ) {
|
||||||
|
|
||||||
// Add note about deprecated WPLANG constant.
|
// Add note about deprecated WPLANG constant.
|
||||||
if ( defined( 'WPLANG' ) && ( '' !== WPLANG ) && $locale !== WPLANG ) {
|
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' ) );
|
_deprecated_argument( 'define()', '4.0.0', sprintf( __( 'The %1$s constant in your %2$s file is no longer needed.' ), 'WPLANG', 'wp-config.php' ) );
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue