Skip to content

Commit

Permalink
7.3 rc
Browse files Browse the repository at this point in the history
  • Loading branch information
uptimizt committed May 26, 2020
1 parent 530a5b1 commit f28b4e5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 10 additions & 5 deletions migrations/7-2.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace WooMS;

use function Sodium\compare;

defined('ABSPATH') || exit;

/**
Expand All @@ -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;
}

Expand All @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion wooms.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f28b4e5

Please sign in to comment.