Make WordPress Core

Ticket #39207: 39207.diff

File 39207.diff, 757 bytes (added by flixos90, 8 years ago)
  • src/wp-admin/options-general.php

     
    149149
    150150                        // Add note about deprecated WPLANG constant.
    151151                        if ( defined( 'WPLANG' ) && ( '' !== WPLANG ) && $locale !== WPLANG ) {
    152                                 if ( is_super_admin() ) {
     152                                if ( is_multisite() && current_user_can( 'manage_network_options' )
     153                                        || ! is_multisite() && current_user_can( 'manage_options' ) ) {
    153154                                        ?>
    154155                                        <p class="description">
    155156                                                <strong><?php _e( 'Note:' ); ?></strong> <?php printf( __( 'The %s constant in your %s file is no longer needed.' ), '<code>WPLANG</code>', '<code>wp-config.php</code>' ); ?>