Make WordPress Core

Changeset 44946


Ignore:
Timestamp:
03/20/2019 06:57:21 PM (5 years ago)
Author:
desrosj
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/options-general.php

    r43571 r44946  
    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            }
Note: See TracChangeset for help on using the changeset viewer.