Plugin Directory

Changeset 2907328


Ignore:
Timestamp:
05/03/2023 07:47:20 AM (3 years ago)
Author:
thrivedesk
Message:

Update to version 1.0.14 from GitHub

Location:
thrivedesk
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • thrivedesk/tags/1.0.14/database/Scripts/MigrationScript.php

    r2907319 r2907328  
    88
    99    public function __construct() {
    10         register_activation_hook( THRIVEDESK_FILE, [ $this, 'run' ] );
    11         add_action( 'upgrader_process_complete', 'wp_td_update_completed', 10, 2 );
     10        add_action( 'plugins_loaded', [ $this, 'run' ], 10, 2 );
    1211    }
    1312
     
    1817
    1918        return self::$instance;
    20     }
    21 
    22     public function wp_td_update_completed( $upgrader_object, $options ) {
    23         if ( $options['action'] == 'update' && $options['type'] == 'plugin' && isset( $options['plugins'] ) ) {
    24             foreach ( $options['plugins'] as $plugin ) {
    25                 if ( $plugin == plugin_basename( THRIVEDESK_FILE ) ) {
    26                     $this->run();
    27                     break;
    28                 }
    29             }
    30         }
    3119    }
    3220
     
    4028
    4129    private function migratePostSyncOption() {
     30        if ( ! current_user_can( 'manage_options' ) ) {
     31            return;
     32        }
     33
    4234        $old_post_sync_option = get_option( 'thrivedesk_post_type_sync_option' );
    4335
  • thrivedesk/tags/1.0.14/readme.txt

    r2907319 r2907328  
    44Requires at least: 4.9
    55Tested up to: 6.2
    6 Stable Tag: 1.0.13
     6Stable Tag: 1.0.14
    77Requires PHP: 5.5
    88License: GNU General Public License v2.0 or later
     
    224224
    225225== Changelog ==
     226= 1.0.14 =
     227- Add: Permission check to run migration script
     228
    226229= 1.0.13 =
    227230- Update: Migration Script
  • thrivedesk/tags/1.0.14/thrivedesk.php

    r2907319 r2907328  
    66 * Plugin URI:          https://www.thrivedesk.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
    77 * Tags:                live chat, helpdesk, free live chat, knowledge base, thrivedesk
    8  * Version:             1.0.13
     8 * Version:             1.0.14
    99 * Author:              ThriveDesk
    1010 * Author URI:          https://profiles.wordpress.org/thrivedesk/
     
    5050     * @var string
    5151     */
    52     public $version = '1.0.13';
     52    public $version = '1.0.14';
    5353
    5454    /**
  • thrivedesk/trunk/database/Scripts/MigrationScript.php

    r2907319 r2907328  
    88
    99    public function __construct() {
    10         register_activation_hook( THRIVEDESK_FILE, [ $this, 'run' ] );
    11         add_action( 'upgrader_process_complete', 'wp_td_update_completed', 10, 2 );
     10        add_action( 'plugins_loaded', [ $this, 'run' ], 10, 2 );
    1211    }
    1312
     
    1817
    1918        return self::$instance;
    20     }
    21 
    22     public function wp_td_update_completed( $upgrader_object, $options ) {
    23         if ( $options['action'] == 'update' && $options['type'] == 'plugin' && isset( $options['plugins'] ) ) {
    24             foreach ( $options['plugins'] as $plugin ) {
    25                 if ( $plugin == plugin_basename( THRIVEDESK_FILE ) ) {
    26                     $this->run();
    27                     break;
    28                 }
    29             }
    30         }
    3119    }
    3220
     
    4028
    4129    private function migratePostSyncOption() {
     30        if ( ! current_user_can( 'manage_options' ) ) {
     31            return;
     32        }
     33
    4234        $old_post_sync_option = get_option( 'thrivedesk_post_type_sync_option' );
    4335
  • thrivedesk/trunk/readme.txt

    r2907319 r2907328  
    44Requires at least: 4.9
    55Tested up to: 6.2
    6 Stable Tag: 1.0.13
     6Stable Tag: 1.0.14
    77Requires PHP: 5.5
    88License: GNU General Public License v2.0 or later
     
    224224
    225225== Changelog ==
     226= 1.0.14 =
     227- Add: Permission check to run migration script
     228
    226229= 1.0.13 =
    227230- Update: Migration Script
  • thrivedesk/trunk/thrivedesk.php

    r2907319 r2907328  
    66 * Plugin URI:          https://www.thrivedesk.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
    77 * Tags:                live chat, helpdesk, free live chat, knowledge base, thrivedesk
    8  * Version:             1.0.13
     8 * Version:             1.0.14
    99 * Author:              ThriveDesk
    1010 * Author URI:          https://profiles.wordpress.org/thrivedesk/
     
    5050     * @var string
    5151     */
    52     public $version = '1.0.13';
     52    public $version = '1.0.14';
    5353
    5454    /**
Note: See TracChangeset for help on using the changeset viewer.