Plugin Directory

Changeset 3087544


Ignore:
Timestamp:
05/16/2024 08:28:06 AM (23 months ago)
Author:
backupmonkey
Message:

Work around interesting updater quirk

Location:
remotemonkey/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • remotemonkey/trunk/readme.txt

    r3087491 r3087544  
    33Requires at least: 6.4
    44Tested up to: 6.5.3
    5 Stable tag: 1.0.3
     5Stable tag: 1.0.4
    66Requires PHP: 7.4
    77Author: BackupMonkey.io
  • remotemonkey/trunk/remotemonkey.php

    r3087491 r3087544  
    44Plugin Name: RemoteMonkey
    55Description: Connecting to the BackupMonkey website management
    6 Version: 1.0.3
     6Version: 1.0.4
    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.1' );
     17define( 'REMOTEMONKEY_VERSION', '1.0.4' );
    1818
    1919/**
  • remotemonkey/trunk/src/Remotemonkey/Api/Controller/Updateextension.php

    r3078296 r3087544  
    148148        }
    149149
    150         $result = $upgrader->upgrade( $eid );
     150        // Check activation state before update
     151        $activeBeforeUpdate = is_plugin_active( $pluginFilePath );
     152
     153        // Perform upgrade
     154        $result = $upgrader->upgrade( $pluginFilePath );
     155
     156        // Plugins need to be re-enabled after updates
     157        if ($activeBeforeUpdate) {
     158            activate_plugins( $pluginFilePath, '');
     159        }
    151160
    152161        if ( is_wp_error( $result ) ) {
Note: See TracChangeset for help on using the changeset viewer.