diff --git a/includes/Admin/Updaters/Pro_Plugin_Updater.php b/includes/Admin/Updaters/Pro_Plugin_Updater.php index 3d2b508..774ea56 100644 --- a/includes/Admin/Updaters/Pro_Plugin_Updater.php +++ b/includes/Admin/Updaters/Pro_Plugin_Updater.php @@ -140,8 +140,13 @@ public function update_plugins( $update, $plugin_data, $plugin_file, $locales ) $update_data = $this->check_pro_plugin_updates( $current_version ); $is_development = isset( $_ENV['DEVELOPMENT'] ) && $_ENV['DEVELOPMENT']; + // Check if $update_data is an object and convert to an array if so. + if ( is_object( $update_data ) ) { + $update_data = get_object_vars( $update_data ); + } + // Check if update data is valid and if a new version is available. - if ( isset( $update_data['version'] ) && version_compare( $current_version, $update_data['version'], '<' ) ) { + if ( is_array( $update_data ) && isset( $update_data['version'] ) && version_compare( $current_version, $update_data['version'], '<' ) ) { $license_settings = $this->get_license_settings(); $key = isset( $license_settings['key'] ) ? $license_settings['key'] : ''; $instance = isset( $license_settings['instance'] ) ? $license_settings['instance'] : ''; diff --git a/readme.txt b/readme.txt index 590ed62..7360142 100644 --- a/readme.txt +++ b/readme.txt @@ -1,6 +1,6 @@ === WooCommerce POS === Contributors: kilbot -Tags: cart, e-commerce, ecommerce, inventory, point-of-sale, pos, sales, sell, shop, shopify, store, vend, woocommerce, wordpress-ecommerce +Tags: ecommerce, point-of-sale, pos, inventory, store Requires at least: 5.6 Tested up to: 6.5 Stable tag: 1.4.12