Make WordPress Core

Changeset 16924


Ignore:
Timestamp:
12/14/2010 07:17:49 PM (14 years ago)
Author:
nacin
Message:

Revert to WP_DEFAULT_THEME if a child theme is in use and no style.css is present. fixes #15712.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r16915 r16924  
    12871287        return false;
    12881288    }
     1289   
     1290    if ( is_child_theme() && ! file_exists( get_stylesheet_directory() . '/style.css' ) ) {
     1291        switch_theme( WP_DEFAULT_THEME, WP_DEFAULT_THEME );
     1292        return false;
     1293    }
    12891294
    12901295    return true;
Note: See TracChangeset for help on using the changeset viewer.