Skip to content

Commit 0a875f0

Browse files
committed
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
1 parent b748341 commit 0a875f0

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

src/wp-admin/options-general.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -183,14 +183,6 @@
183183

184184
// Add note about deprecated WPLANG constant.
185185
if ( defined( 'WPLANG' ) && ( '' !== WPLANG ) && $locale !== WPLANG ) {
186-
if ( is_multisite() && current_user_can( 'manage_network_options' )
187-
|| ! is_multisite() && current_user_can( 'manage_options' ) ) {
188-
?>
189-
<p class="description">
190-
<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>' ); ?>
191-
</p>
192-
<?php
193-
}
194186
_deprecated_argument( 'define()', '4.0.0', sprintf( __( 'The %1$s constant in your %2$s file is no longer needed.' ), 'WPLANG', 'wp-config.php' ) );
195187
}
196188
?>

0 commit comments

Comments
 (0)