Changeset 1735544
- Timestamp:
- 09/25/2017 01:51:25 PM (9 years ago)
- Location:
- unloq/trunk
- Files:
-
- 3 edited
-
includes/class-activator.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
-
unloq.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
unloq/trunk/includes/class-activator.php
r1735499 r1735544 39 39 if(version_compare($currentVersion, UQ_VERSION, '==')) 40 40 return; 41 42 41 $this->upgradeFromVersionOne(); 42 // we store the current plugin version 43 $this->util->wp_option('update', 'unloq_version', UQ_VERSION); 43 44 } 44 45 … … 65 66 'platform' => 'WORDPRESS' 66 67 )); 68 67 69 // we check if the apiKey is set and valid from old settings 68 70 // and only in this case we proceed with migrating data … … 104 106 $this->util->wp_option('update', 'unloq_settings', $unloqSettings); 105 107 106 // we store the current plugin version107 $this->util->wp_option('update', 'unloq_version', UQ_VERSION);108 109 108 // remove the setting from the old plugin 110 109 $this->util->wp_option('delete', 'wpunloq'); -
unloq/trunk/readme.txt
r1735499 r1735544 117 117 118 118 == Changelog == 119 = 2.1.1 = 120 * Fixed upgrade compatibility from v1.x to 2.x 119 121 = 2.1.0 = 120 122 * Fixed issues with v1.x compatibility by adding the "SSO" Feature. You can now seamlessly enable v1.x login-style -
unloq/trunk/unloq.php
r1735499 r1735544 18 18 19 19 define('UQ_PLUGIN', 'unloq'); 20 define('UQ_VERSION', '2.1. 0');20 define('UQ_VERSION', '2.1.1'); 21 21 define('UQ_VENDORS', plugin_dir_url(__FILE__) . 'vendors'); 22 22 define('UQ_VENDORS_DIR', plugin_dir_path(__FILE__) . 'vendors'); … … 29 29 require plugin_dir_path(__FILE__) . 'includes/class-core.php'; 30 30 31 function unloq_activate() {32 add_option('Activated_Unloq_Plugin', 'UNLOQ');33 }34 register_activation_hook(__FILE__, 'unloq_activate');35 36 37 31 function load_wp_unloq() { 38 if ( is_admin() && get_option( 'Activated_Unloq_Plugin' ) == 'UNLOQ' ) { 39 require plugin_dir_path(__FILE__) . 'includes/class-activator.php'; 40 $activator = new Wp_Unloq_Activator(); 41 $activator->activate(); 42 delete_option('Activated_Unloq_Plugin'); 43 } 32 if(!is_admin()) return; 33 if(!current_user_can('manage_options')) return; 34 require plugin_dir_path(__FILE__) . 'includes/class-activator.php'; 35 $activator = new Wp_Unloq_Activator(); 36 $activator->activate(); 44 37 } 45 38 add_action( 'admin_init', 'load_wp_unloq' );
Note: See TracChangeset
for help on using the changeset viewer.