Changeset 2603146
- Timestamp:
- 09/22/2021 03:14:14 PM (5 years ago)
- Location:
- free-comments-for-wordpress-vuukle/trunk
- Files:
-
- 5 edited
-
README.txt (modified) (2 diffs)
-
free-comments-for-wordpress-vuukle.php (modified) (2 diffs)
-
includes/class-free-comments-for-wordpress-vuukle-activator.php (modified) (1 diff)
-
includes/class-free-comments-for-wordpress-vuukle-helper.php (modified) (1 diff)
-
includes/class-free-comments-for-wordpress-vuukle.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
free-comments-for-wordpress-vuukle/trunk/README.txt
r2603004 r2603146 4 4 Requires at least: 2.0.2 5 5 Tested up to: 5.8 6 Stable tag: 5.0. 26 Stable tag: 5.0.3 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 172 172 == Changelog == 173 173 174 = 5.0.3 = 175 176 * Major Bug fixing 177 * Added upgrader event action 178 174 179 = 5.0.2 = 175 180 -
free-comments-for-wordpress-vuukle/trunk/free-comments-for-wordpress-vuukle.php
r2603004 r2603146 19 19 * Plugin URI: https://vuukle.com 20 20 * Description: Vuukle is the smartest commenting platform that offers AI-powered commenting, Unique Sharing tool bar, Emoji reaction widget and real time analytics with just one click. Customize all you want, make your pages load faster and experience user engagement like never before! 21 * Version: 5.0 21 * Version: 5.0.3 22 22 * Author: Vuukle 23 23 * Author URI: https://vuukle.com … … 71 71 */ 72 72 function Run_Free_Comments_For_Wordpress_vuukle() { 73 $plugin = new Free_Comments_For_Wordpress_Vuukle( '5.0. 2', plugin_dir_path( __FILE__ ), plugin_dir_url( __FILE__ ) );73 $plugin = new Free_Comments_For_Wordpress_Vuukle( '5.0.3', plugin_dir_path( __FILE__ ), plugin_dir_url( __FILE__ ), plugin_basename( __FILE__ ) ); 74 74 $plugin->run(); 75 75 } -
free-comments-for-wordpress-vuukle/trunk/includes/class-free-comments-for-wordpress-vuukle-activator.php
r2603004 r2603146 45 45 */ 46 46 $settings = get_option( 'Vuukle' ); 47 if ( ! empty( $settings ) && is_array( $settings ) && ! empty( $settings['AppId'] ) ) { 47 $app_id = get_option( 'Vuukle_App_Id' ); 48 if ( ! empty( $settings ) && is_array( $settings ) && ! empty( $settings['AppId'] ) && $app_id == null ) { 48 49 // Move to another row with option name Vuukle_App_Id 49 50 add_option( 'Vuukle_App_Id', $settings['AppId'] ); -
free-comments-for-wordpress-vuukle/trunk/includes/class-free-comments-for-wordpress-vuukle-helper.php
r2603004 r2603146 242 242 } 243 243 244 /** 245 * Live checks weather app id field is empty 246 * and also app id field exists in other settings array , then move to separate field 247 * 248 * @since 5.0.3 249 */ 250 public static function upgradeLiveCheck() { 251 $app_id = get_option( 'Vuukle_App_Id' ); 252 if ( $app_id == null ) { 253 $settings = get_option( 'Vuukle' ); 254 if ( ! empty( $settings ) && is_array( $settings ) && ! empty( $settings['AppId'] ) ) { 255 // Move to another row with option name Vuukle_App_Id 256 add_option( 'Vuukle_App_Id', $settings['AppId'] ); 257 // Remove from main options array 258 unset( $settings['AppId'] ); 259 update_option( 'Vuukle', $settings ); 260 } 261 } 262 } 263 244 264 } -
free-comments-for-wordpress-vuukle/trunk/includes/class-free-comments-for-wordpress-vuukle.php
r2603004 r2603146 69 69 * 70 70 */ 71 public function __construct( $plugin_version, $plugin_dir_path, $plugin_dir_url ) {71 public function __construct( $plugin_version, $plugin_dir_path, $plugin_dir_url, $plugin_base_name ) { 72 72 // Define main attributes 73 73 $this->attributes = [ 74 74 'name' => 'free-comments-for-wordpress-vuukle', 75 'base_name' => $plugin_base_name, 75 76 'class_prefix' => 'class-free-comments-for-wordpress-vuukle-', 76 77 'version' => $plugin_version, … … 97 98 */ 98 99 $this->loadDependencies(); 100 $this->upgradeLiveCheck(); 99 101 $this->setLocale(); 100 102 $this->init(); … … 166 168 $plugin_i18n = new Free_Comments_For_Wordpress_Vuukle_i18n(); 167 169 $this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' ); 170 } 171 172 /** 173 * Upgrade live check. Needed for checking vuukle app id separate field existence. 174 * As we were unable to run this single time, that is why this will run always 175 * TODO possible solution is 'upgrader_process_complete' hook. Worst point of this hook is that it is running on old plugin instead of new updated one 176 */ 177 private function upgradeLiveCheck() { 178 Free_Comments_For_Wordpress_Vuukle_Helper::upgradeLiveCheck(); 168 179 } 169 180
Note: See TracChangeset
for help on using the changeset viewer.