fix file version check path

This commit is contained in:
Manos Psychogyiopoulos 2015-09-29 12:36:03 +03:00
parent f7ea1d4c6a
commit e36c5ae630
1 changed files with 1 additions and 1 deletions

View File

@ -679,7 +679,7 @@ if ( ! defined( 'ABSPATH' ) ) {
}
if ( ! empty( $theme_file ) ) {
$core_version = WC_Admin_Status::get_file_version( WC()->plugin_path() . '/templates/' . $file );
$core_version = WC_Admin_Status::get_file_version( $template_path . $file );
$theme_version = WC_Admin_Status::get_file_version( $theme_file );
if ( $core_version && ( empty( $theme_version ) || version_compare( $theme_version, $core_version, '<' ) ) ) {