Merge pull request #5674 from claudiosmweb/5673-fix-template-file-check-broken

Fix undefined variable $status in WC_Admin_Notices::template_file_check_notice()
This commit is contained in:
Mike Jolley 2014-06-13 16:46:29 +01:00
commit 7f3ba80f59
1 changed files with 2 additions and 2 deletions

View File

@ -130,8 +130,8 @@ class WC_Admin_Notices {
}
if ( $theme_file ) {
$core_version = $status->get_file_version( WC()->plugin_path() . '/templates/' . $file );
$theme_version = $status->get_file_version( $theme_file );
$core_version = WC_Admin_Status::get_file_version( WC()->plugin_path() . '/templates/' . $file );
$theme_version = WC_Admin_Status::get_file_version( $theme_file );
if ( $core_version && $theme_version && version_compare( $theme_version, $core_version, '<' ) ) {
$outdated = true;