Merge pull request #3995 from scottbasgaard/master

In System Status -> Templates make sure to look for template overrides in parent theme.
This commit is contained in:
Mike Jolley 2013-10-24 12:35:41 -07:00
commit dfe4027ac7
1 changed files with 5 additions and 1 deletions

View File

@ -456,7 +456,11 @@
foreach ( $files as $file ) {
if ( file_exists( get_stylesheet_directory() . '/' . $file ) ) {
$found_files[ $plugin_name ][] = '/' . $file;
} elseif( file_exists( get_stylesheet_directory() . '/woocommerce/' . $file ) ) {
} elseif ( file_exists( get_stylesheet_directory() . '/woocommerce/' . $file ) ) {
$found_files[ $plugin_name ][] = '/woocommerce/' . $file;
} elseif ( file_exists( get_template_directory() . '/' . $file ) ) {
$found_files[ $plugin_name ][] = '/' . $file;
} elseif( file_exists( get_template_directory() . '/woocommerce/' . $file ) ) {
$found_files[ $plugin_name ][] = '/woocommerce/' . $file;
}
}