|
@@ 670-672 (lines=3) @@
|
| 667 |
|
foreach ( $scan_files as $file ) { |
| 668 |
|
if ( file_exists( get_stylesheet_directory() . '/' . $file ) ) { |
| 669 |
|
$theme_file = get_stylesheet_directory() . '/' . $file; |
| 670 |
|
} elseif ( file_exists( get_stylesheet_directory() . '/' . WC()->template_path() . $file ) ) { |
| 671 |
|
$theme_file = get_stylesheet_directory() . '/' . WC()->template_path() . $file; |
| 672 |
|
} elseif ( file_exists( get_template_directory() . '/' . $file ) ) { |
| 673 |
|
$theme_file = get_template_directory() . '/' . $file; |
| 674 |
|
} elseif ( file_exists( get_template_directory() . '/' . WC()->template_path() . $file ) ) { |
| 675 |
|
$theme_file = get_template_directory() . '/' . WC()->template_path() . $file; |
|
@@ 674-676 (lines=3) @@
|
| 671 |
|
$theme_file = get_stylesheet_directory() . '/' . WC()->template_path() . $file; |
| 672 |
|
} elseif ( file_exists( get_template_directory() . '/' . $file ) ) { |
| 673 |
|
$theme_file = get_template_directory() . '/' . $file; |
| 674 |
|
} elseif ( file_exists( get_template_directory() . '/' . WC()->template_path() . $file ) ) { |
| 675 |
|
$theme_file = get_template_directory() . '/' . WC()->template_path() . $file; |
| 676 |
|
} else { |
| 677 |
|
$theme_file = false; |
| 678 |
|
} |
| 679 |
|
|