Changeset 3008158
- Timestamp:
- 12/11/2023 02:07:47 PM (2 years ago)
- Location:
- eshipper-commerce/trunk
- Files:
-
- 3 edited
-
framework/plugin.php (modified) (4 diffs)
-
readme.txt (modified) (3 diffs)
-
woocommerce-eshipper.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
eshipper-commerce/trunk/framework/plugin.php
r3007319 r3008158 238 238 public function eshipper_upgrades($upgraderObject, $options) 239 239 { 240 wc_get_logger()->debug(' Plugin version updated to ' . ESHIPPER_VERSION . '. Now executing Post-Update tasks.', ['source' => 'eshipper']);240 wc_get_logger()->debug('[upgrader_process_complete]', ['source' => 'eshipper']); 241 241 242 242 $eshipperPluginPathName = plugin_basename(ESHIPPER_PLUGIN_FILE); … … 247 247 in_array($eshipperPluginPathName, $options['plugins']) 248 248 ) { 249 // Set a transient to record that our plugin has just been updated250 set_transient('wp_eshipper_updated', 1);249 // Now we know that eshipper plugin was updated, so let's do things we're supposed to on updates 250 $this->runPostUpdateTasks(); 251 251 } else { 252 252 wc_get_logger()->error('Post-Update process interrupted.', ['source' => 'eshipper']); 253 254 return; 255 } 256 257 // Now we know that eshipper plugin was updated, so let's do things we're supposed to on updates 253 } 254 } 255 256 public function runPostUpdateTasks() 257 { 258 wc_get_logger()->debug('Plugin version updated to ' . ESHIPPER_VERSION . '. Now executing Post-Update tasks.', ['source' => 'eshipper']); 259 260 // Set transient for update 261 set_transient('wp_eshipper_updated', 1); 262 263 // Update the version number in options table 264 wc_get_logger()->debug('Updating eshipper version in options table.', ['source' => 'eshipper']); 265 update_option('eshipper_version', ESHIPPER_VERSION); 258 266 259 267 // If the plugin is deactivated, activate it again … … 272 280 require_once(ESHIPPER_PLUGIN_PATH . '/plugin/pluginLifeCycle.php'); 273 281 pluginLifeCycle::updateDB(); 274 275 // Update the version number in options table276 wc_get_logger()->debug('Updating eshipper version in options table.', ['source' => 'eshipper']);277 update_option('eshipper_version', ESHIPPER_VERSION);278 282 279 283 // DONE … … 365 369 $version = get_option('eshipper_version', '1.0'); 366 370 if (version_compare($version, ESHIPPER_VERSION, '<')) { 367 update_option('eshipper_version', ESHIPPER_VERSION);371 $this->runPostUpdateTasks(); 368 372 } 369 373 } -
eshipper-commerce/trunk/readme.txt
r3007319 r3008158 5 5 Tested up to: 6.3.1 6 6 Requires PHP: 7.1 7 Stable tag: 2.16. 57 Stable tag: 2.16.6 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 54 54 55 55 == Changelog == 56 = 2.16.6 = 57 * Improved update process 58 56 59 = 2.16.5 = 57 60 * Improved update process … … 105 108 106 109 == Upgrade Notice == 110 = 2.16.6 = 111 Improved update process 112 107 113 = 2.16.5 = 108 114 Improved update process -
eshipper-commerce/trunk/woocommerce-eshipper.php
r3007319 r3008158 4 4 Plugin URI: https://ww2.eshipper.com/ecommerce/ 5 5 Description: Extends WooCommerce with Shipping Rates from eShipper 6 Version: 2.16. 56 Version: 2.16.6 7 7 Author: eShipper 8 8 Author URI: https://ww2.eshipper.com/ … … 28 28 get_site_option('active_sitewide_plugins') 29 29 ))) { 30 define('ESHIPPER_VERSION', '2.16. 5');30 define('ESHIPPER_VERSION', '2.16.6'); 31 31 define('ESHIPPER_PLUGIN_PATH', dirname(__FILE__)); 32 32 define('ESHIPPER_PLUGIN_FILE', __FILE__);
Note: See TracChangeset
for help on using the changeset viewer.