Changeset 3088209
- Timestamp:
- 05/17/2024 09:43:05 AM (23 months ago)
- Location:
- remotemonkey/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (1 diff)
-
remotemonkey.php (modified) (2 diffs)
-
src/Remotemonkey/Api/Controller/Updateextension.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
remotemonkey/trunk/readme.txt
r3087763 r3088209 4 4 Requires at least: 6.4 5 5 Tested up to: 6.5.3 6 Stable tag: 1.0. 56 Stable tag: 1.0.6 7 7 Requires PHP: 7.4 8 8 Author: BackupMonkey.io -
remotemonkey/trunk/remotemonkey.php
r3087545 r3088209 4 4 Plugin Name: RemoteMonkey 5 5 Description: Connecting to the BackupMonkey website management 6 Version: 1.0. 56 Version: 1.0.6 7 7 Author: BackupMonkey.io Team <team@backupmonkey.io> 8 8 Author URI: https://backupmonkey.io/ … … 15 15 define( 'REMOTEMONKEY_APIURL', 'https://api.backupmonkey.io/' ); 16 16 define( 'REMOTEMONKEY_GUIURL', 'https://console.backupmonkey.io' ); 17 define( 'REMOTEMONKEY_VERSION', '1.0. 5' );17 define( 'REMOTEMONKEY_VERSION', '1.0.6' ); 18 18 19 19 /** -
remotemonkey/trunk/src/Remotemonkey/Api/Controller/Updateextension.php
r3087544 r3088209 97 97 } 98 98 99 // Check activation state before update 100 $activeBeforeUpdate = is_plugin_active( $pluginFilePath ); 101 99 102 $result = $upgrader->upgrade( $pluginFilePath ); 103 104 // Plugins need to be re-enabled after updates 105 if ($activeBeforeUpdate) { 106 activate_plugins( $pluginFilePath, ''); 107 } 100 108 101 109 if ( is_wp_error( $result ) ) { … … 147 155 throw new Exception( 'The minimum required WordPress version for this update is ' . esc_html( $updateData->RequiresWP ), 400 ); 148 156 } 149 150 // Check activation state before update151 $activeBeforeUpdate = is_plugin_active( $pluginFilePath );152 153 157 // Perform upgrade 154 158 $result = $upgrader->upgrade( $pluginFilePath ); 155 156 // Plugins need to be re-enabled after updates157 if ($activeBeforeUpdate) {158 activate_plugins( $pluginFilePath, '');159 }160 159 161 160 if ( is_wp_error( $result ) ) {
Note: See TracChangeset
for help on using the changeset viewer.