From d037c4a3f255f1eaa3ce9f3a6aec3a677bb0d683 Mon Sep 17 00:00:00 2001 From: Matty Date: Wed, 28 Sep 2016 12:19:58 +0200 Subject: [PATCH] Ensures any checks for 'woothemes.com' in logic also check for 'woocommerce.com'. --- includes/admin/views/html-admin-page-status-report.php | 2 +- includes/api/class-wc-rest-system-status-controller.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/admin/views/html-admin-page-status-report.php b/includes/admin/views/html-admin-page-status-report.php index 536be252a5e..220368da68a 100644 --- a/includes/admin/views/html-admin-page-status-report.php +++ b/includes/admin/views/html-admin-page-status-report.php @@ -347,7 +347,7 @@ $pages = $system_status->get_pages(); $version_string = ''; $network_string = ''; - if ( strstr( $plugin['url'], 'woothemes.com' ) ) { + if ( strstr( $plugin['url'], 'woothemes.com' ) || strstr( $plugin['url'], 'woocommerce.com' ) ) { if ( ! empty( $plugin['version_latest'] ) && version_compare( $plugin['version_latest'], $plugin['version'], '>' ) ) { $version_string = ' – ' . esc_html( sprintf( _x( '%s is available', 'Version info', 'woocommerce' ), $plugin['version_latest'] ) ) . ''; } diff --git a/includes/api/class-wc-rest-system-status-controller.php b/includes/api/class-wc-rest-system-status-controller.php index 37adf339162..1d38aa2eb73 100644 --- a/includes/api/class-wc-rest-system-status-controller.php +++ b/includes/api/class-wc-rest-system-status-controller.php @@ -581,7 +581,7 @@ class WC_REST_System_Status_Controller extends WC_REST_Controller { $data = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin ); $dirname = dirname( $plugin ); $theme_version_latest = ''; - if ( strstr( $data['PluginURI'], 'woothemes.com' ) ) { + if ( strstr( $data['PluginURI'], 'woothemes.com' ) || strstr( $data['PluginURI'], 'woocommerce.com' ) ) { if ( false === ( $version_data = get_transient( md5( $plugin ) . '_version_data' ) ) ) { $changelog = wp_safe_remote_get( 'http://dzv365zjfbd8v.cloudfront.net/changelogs/' . $dirname . '/changelog.txt' ); $cl_lines = explode( "\n", wp_remote_retrieve_body( $changelog ) );