WordPress.org

Make WordPress Core

Ticket #39207: ticket-39207.patch

File ticket-39207.patch, 665 bytes (added by Dhaval Parekh, 4 years ago)

Replaced is_super_admin() check with current_user_can( 'manage_options' )

  • src/wp-admin/options-general.php

     
    346346
    347347                        // Add note about deprecated WPLANG constant.
    348348                        if ( defined( 'WPLANG' ) && ( '' !== WPLANG ) && $locale !== WPLANG ) {
    349                                 if ( is_super_admin() ) {
     349                                if ( current_user_can( 'manage_options' ) ) {
    350350                                        ?>
    351351                                        <p class="description">
    352352                                                <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>' ); ?>