This commit is contained in:
Mykyta Synelnikov
2024-09-26 12:08:16 +03:00
parent 28103de201
commit e9a3bcc9fa
2 changed files with 9 additions and 4 deletions
+4 -2
View File
@@ -106,6 +106,8 @@ class Theme {
$scan_files = self::get_all_templates();
foreach ( $scan_files as $key => $files ) {
foreach ( $files as $file ) {
$file = wp_normalize_path( $file ); // for not a Linux hosting.
if ( false === strpos( $file, 'email/' ) ) {
/**
* Filters an array of the template files for scanning versions based on $key.
@@ -133,8 +135,8 @@ class Theme {
'profile/comments-single.php',
'profile/posts.php',
'profile/posts-single.php',
'modal/um_upload_single.php',
'modal/um_view_photo.php',
'modal/upload-single.php',
'modal/view-photo.php',
);
$theme_file = false;