add back in woocommerce.com as a soon-to-be legacy check for the plugin URL

This commit is contained in:
Leif Singer 2023-11-10 15:26:13 +01:00
parent 96717cc3dc
commit 6ef64d5328
1 changed files with 1 additions and 1 deletions

View File

@ -395,7 +395,7 @@ class WC_Admin_Status {
$has_newer_version = false;
$version_string = $plugin['version'];
$network_string = '';
if ( strstr( $plugin['url'], 'woothemes.com' ) || strstr( $plugin['url'], 'woo.com' ) ) {
if ( strstr( $plugin['url'], 'woothemes.com' ) || strstr( $plugin['url'], 'woocommerce.com' ) || strstr( $plugin['url'], 'woo.com' ) ) {
if ( ! empty( $plugin['version_latest'] ) && version_compare( $plugin['version_latest'], $plugin['version'], '>' ) ) {
/* translators: 1: current version. 2: latest version */
$version_string = sprintf( __( '%1$s (update to version %2$s is available)', 'woocommerce' ), $plugin['version'], $plugin['version_latest'] );