From 0a875f017035bb124ddf4d95048d30b078a19b93 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Wed, 20 Mar 2019 18:57:21 +0000 Subject: [PATCH] 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 --- src/wp-admin/options-general.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/wp-admin/options-general.php b/src/wp-admin/options-general.php index f06c52fa46..9f248365f6 100644 --- a/src/wp-admin/options-general.php +++ b/src/wp-admin/options-general.php @@ -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' ) ) { - ?> -

- WPLANG', 'wp-config.php' ); ?> -

-