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:
commit
dfe4027ac7
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue