Skip to content

Instantly share code, notes, and snippets.

Created October 22, 2014 10:25
What would you like to do?
Warn that deprecated WPLANG constant will be ignored
* 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