mirror of
git://develop.git.wordpress.org/
synced 2025-02-28 02:22:25 +01:00
Revert to WP_DEFAULT_THEME if a child theme is in use and no style.css is present. fixes #15712, props greuben.
git-svn-id: https://develop.svn.wordpress.org/trunk@16925 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
70b6bbcfa8
commit
8b6cf91dc9
@ -1286,7 +1286,7 @@ function validate_current_theme() {
|
||||
switch_theme( WP_DEFAULT_THEME, WP_DEFAULT_THEME );
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if ( is_child_theme() && ! file_exists( get_stylesheet_directory() . '/style.css' ) ) {
|
||||
switch_theme( WP_DEFAULT_THEME, WP_DEFAULT_THEME );
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user