From f28b4e5de3f9f9828a9c29cba3370831a90f71e6 Mon Sep 17 00:00:00 2001 From: uptimizt Date: Tue, 26 May 2020 22:12:14 +0300 Subject: [PATCH] 7.3 rc --- migrations/7-2.php | 15 ++++++++++----- wooms.php | 2 +- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/migrations/7-2.php b/migrations/7-2.php index 86bed72..87c553b 100644 --- a/migrations/7-2.php +++ b/migrations/7-2.php @@ -2,6 +2,8 @@ namespace WooMS; +use function Sodium\compare; + defined('ABSPATH') || exit; /** @@ -15,16 +17,18 @@ } // delete_option('wooms_db_version'); - $version = get_option('wooms_db_version', 0); + $version_db = get_option('wooms_db_version', 0); $wooms_file = ABSPATH . PLUGINDIR . '/wooms/wooms.php'; $data = get_plugin_data($wooms_file); - if ('7.2' != $data['Version']) { + + + if (version_compare('7.2', $data['Version'], '>')) { return; } - if (version_compare('7.2', $version, '<=')) { + if (version_compare('7.2', $version_db, '<=')) { return; } @@ -49,13 +53,14 @@ add_action( 'admin_notices', function(){ if ( ! is_plugin_active( 'wooms-extra/wooms-extra.php' ) ) { + delete_option('wooms_db_version_check_7_2'); return; } - + if( ! get_option('wooms_db_version_check_7_2')){ return; } - + $wooms_file = ABSPATH . PLUGINDIR . '/wooms-extra/wooms-extra.php'; $data = get_plugin_data($wooms_file); diff --git a/wooms.php b/wooms.php index 932419d..7e395bf 100644 --- a/wooms.php +++ b/wooms.php @@ -16,8 +16,8 @@ * Tested up to: 5.6 * License: GPLv2 or later * License URI: http://www.gnu.org/licenses/gpl-2.0.html - * Version: 7.3 * WooMS XT Latest: 7.2 + * Version: 7.3 */ // Exit if accessed directly