Plugin Directory

Changeset 2252451


Ignore:
Timestamp:
02/29/2020 09:29:53 PM (6 years ago)
Author:
wpcalendars
Message:

update

Location:
wpcalendars-lite/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wpcalendars-lite/trunk/includes/install.php

    r2250715 r2252451  
    1414    public function __construct() {
    1515        register_activation_hook( WPCALENDARS_PLUGIN_FILE, array( $this, 'install' ) );
    16         add_action( 'admin_notices', array( $this, 'upgrade_notices' ) );
    17         add_action( 'admin_init',    array( $this, 'upgrade_db' ) );
     16        add_action( 'admin_notices',             array( $this, 'upgrade_notices' ) );
     17        add_action( 'admin_init',                array( $this, 'upgrade_db' ) );
     18        add_action( 'upgrader_process_complete', array( $this, 'upgrader_process_complete' ), 10, 2 );
    1819    }
    1920   
     
    114115        }
    115116    }
     117   
     118    /**
     119     * Execute the script when the upgrade process complete
     120     *
     121     * @param type $upgrader_object
     122     * @param type $options
     123     */
     124    public function upgrader_process_complete( $upgrader_object, $options ) {
     125        if ( $options['action'] === 'update' && $options['type'] === 'plugin' && isset( $options['plugins'] ) ) {
     126            foreach ( $options['plugins'] as $each_plugin ) {
     127                if ( $each_plugin === WPCALENDARS_PLUGIN_BASENAME ) {
     128                    wpcalendars_upgrade105();
     129                    wpcalendars_upgrade12();
     130                    update_option( 'wpcalendars_version', WPCALENDARS_PLUGIN_VERSION );
     131                    flush_rewrite_rules();
     132                }
     133            }
     134        }
     135    }
    116136}
    117137
  • wpcalendars-lite/trunk/readme.txt

    r2250715 r2252451  
    33Tags: events, calendar, event, events calendar, repeat events, recurring events, organizer, venue, date
    44Requires at least: 5.0
    5 Tested up to: 5.2.4
    6 Stable tag: 1.2.2
     5Tested up to: 5.3.2
     6Stable tag: 1.2.3
    77Requires PHP: 5.2.4
    88License: GPLv2 or later
  • wpcalendars-lite/trunk/wpcalendars.php

    r2250715 r2252451  
    66 * Author: WPCalendars Team
    77 * Author URI: https://wpcalendars.com
    8  * Version: 1.2.2
     8 * Version: 1.2.3
    99 * Text Domain: wpcalendars
    1010 * Domain Path: languages
     
    5757        // Plugin version
    5858        if ( !defined( 'WPCALENDARS_PLUGIN_VERSION' ) ) {
    59             define( 'WPCALENDARS_PLUGIN_VERSION', '1.2.2' );
     59            define( 'WPCALENDARS_PLUGIN_VERSION', '1.2.3' );
    6060        }
    6161       
Note: See TracChangeset for help on using the changeset viewer.