Created
October 22, 2014 10:25
-
-
Save timwhitlock/110d5bd9a8f0bb2d40b3 to your computer and use it in GitHub Desktop.
Warn that deprecated WPLANG constant will be ignored
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* display warning in Wordpress admin that WPLANG constant will be ignored | |
*/ | |
is_admin() and add_action( 'admin_notices', function(){ | |
if( defined('WPLANG') && WPLANG && 3 < (int) $GLOBALS['wp_version'] ){ | |
echo '<div class="error"><p><strong>Warning</strong> <code>WPLANG</code> is deprecated and should be removed from wp-config.php</p></div>'; | |
} | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment