Plugin Directory

Changeset 3088209


Ignore:
Timestamp:
05/17/2024 09:43:05 AM (23 months ago)
Author:
backupmonkey
Message:

Fix theme updater

Location:
remotemonkey/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • remotemonkey/trunk/readme.txt

    r3087763 r3088209  
    44Requires at least: 6.4
    55Tested up to: 6.5.3
    6 Stable tag: 1.0.5
     6Stable tag: 1.0.6
    77Requires PHP: 7.4
    88Author: BackupMonkey.io
  • remotemonkey/trunk/remotemonkey.php

    r3087545 r3088209  
    44Plugin Name: RemoteMonkey
    55Description: Connecting to the BackupMonkey website management
    6 Version: 1.0.5
     6Version: 1.0.6
    77Author: BackupMonkey.io Team <team@backupmonkey.io>
    88Author URI: https://backupmonkey.io/
     
    1515define( 'REMOTEMONKEY_APIURL', 'https://api.backupmonkey.io/' );
    1616define( 'REMOTEMONKEY_GUIURL', 'https://console.backupmonkey.io' );
    17 define( 'REMOTEMONKEY_VERSION', '1.0.5' );
     17define( 'REMOTEMONKEY_VERSION', '1.0.6' );
    1818
    1919/**
  • remotemonkey/trunk/src/Remotemonkey/Api/Controller/Updateextension.php

    r3087544 r3088209  
    9797        }
    9898
     99        // Check activation state before update
     100        $activeBeforeUpdate = is_plugin_active( $pluginFilePath );
     101
    99102        $result = $upgrader->upgrade( $pluginFilePath );
     103
     104        // Plugins need to be re-enabled after updates
     105        if ($activeBeforeUpdate) {
     106            activate_plugins( $pluginFilePath, '');
     107        }
    100108
    101109        if ( is_wp_error( $result ) ) {
     
    147155            throw new Exception( 'The minimum required WordPress version for this update is ' . esc_html( $updateData->RequiresWP ), 400 );
    148156        }
    149 
    150         // Check activation state before update
    151         $activeBeforeUpdate = is_plugin_active( $pluginFilePath );
    152 
    153157        // Perform upgrade
    154158        $result = $upgrader->upgrade( $pluginFilePath );
    155 
    156         // Plugins need to be re-enabled after updates
    157         if ($activeBeforeUpdate) {
    158             activate_plugins( $pluginFilePath, '');
    159         }
    160159
    161160        if ( is_wp_error( $result ) ) {
Note: See TracChangeset for help on using the changeset viewer.