From 50818fae2d40703995bed5fdd4429b8de387d8a2 Mon Sep 17 00:00:00 2001 From: ashubawork Date: Wed, 19 Apr 2023 12:39:32 +0300 Subject: [PATCH] - fix core path for extansions --- includes/admin/core/class-admin-settings.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/includes/admin/core/class-admin-settings.php b/includes/admin/core/class-admin-settings.php index a12d75a8..b170ba03 100644 --- a/includes/admin/core/class-admin-settings.php +++ b/includes/admin/core/class-admin-settings.php @@ -3091,9 +3091,11 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) { $core_file = $file; if ( ! empty( $located ) ) { - $core_path = $located['core']; + $core_path = $located['core']; + $core_file_path = stristr( $core_path, 'wp-content' ); } else { - $core_path = um_path . '/templates/' . $core_file; + $core_path = um_path . '/templates/' . $core_file; + $core_file_path = stristr( um_path . 'templates/' . $core_file, 'wp-content' ); } $core_version = $this->get_file_version( $core_path ); $theme_version = $this->get_file_version( $theme_file ); @@ -3115,7 +3117,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) { $outdated_files[] = array( 'core_version' => $core_version, 'theme_version' => $theme_version, - 'core_file' => stristr( um_path . 'templates/' . $core_file, 'wp-content' ), + 'core_file' => $core_file_path, 'theme_file' => stristr( $theme_file, 'wp-content' ), 'status' => $status, 'status_code' => $status_code,