Changeset 2252451
- Timestamp:
- 02/29/2020 09:29:53 PM (6 years ago)
- Location:
- wpcalendars-lite/trunk
- Files:
-
- 3 edited
-
includes/install.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
wpcalendars.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpcalendars-lite/trunk/includes/install.php
r2250715 r2252451 14 14 public function __construct() { 15 15 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 ); 18 19 } 19 20 … … 114 115 } 115 116 } 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 } 116 136 } 117 137 -
wpcalendars-lite/trunk/readme.txt
r2250715 r2252451 3 3 Tags: events, calendar, event, events calendar, repeat events, recurring events, organizer, venue, date 4 4 Requires at least: 5.0 5 Tested up to: 5. 2.46 Stable tag: 1.2. 25 Tested up to: 5.3.2 6 Stable tag: 1.2.3 7 7 Requires PHP: 5.2.4 8 8 License: GPLv2 or later -
wpcalendars-lite/trunk/wpcalendars.php
r2250715 r2252451 6 6 * Author: WPCalendars Team 7 7 * Author URI: https://wpcalendars.com 8 * Version: 1.2. 28 * Version: 1.2.3 9 9 * Text Domain: wpcalendars 10 10 * Domain Path: languages … … 57 57 // Plugin version 58 58 if ( !defined( 'WPCALENDARS_PLUGIN_VERSION' ) ) { 59 define( 'WPCALENDARS_PLUGIN_VERSION', '1.2. 2' );59 define( 'WPCALENDARS_PLUGIN_VERSION', '1.2.3' ); 60 60 } 61 61
Note: See TracChangeset
for help on using the changeset viewer.