Created
May 28, 2013 22:03
-
-
Save mustafauysal/5666523 to your computer and use it in GitHub Desktop.
a part of validate_current_theme() function in the wordpress core. You can use this code under the mu-plugins folder for prevent to get death of the white screen.
This file contains hidden or 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 | |
if ( get_template() != WP_DEFAULT_THEME && !file_exists(get_template_directory() . '/index.php') ) { | |
switch_theme( WP_DEFAULT_THEME ); | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment