Plugin Directory

Changeset 2603146


Ignore:
Timestamp:
09/22/2021 03:14:14 PM (5 years ago)
Author:
vuukle
Message:

5.0.3 trunk release

Location:
free-comments-for-wordpress-vuukle/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • free-comments-for-wordpress-vuukle/trunk/README.txt

    r2603004 r2603146  
    44Requires at least: 2.0.2
    55Tested up to: 5.8
    6 Stable tag: 5.0.2
     6Stable tag: 5.0.3
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    172172== Changelog ==
    173173
     174= 5.0.3 =
     175
     176* Major Bug fixing
     177* Added upgrader event action
     178
    174179= 5.0.2 =
    175180
  • free-comments-for-wordpress-vuukle/trunk/free-comments-for-wordpress-vuukle.php

    r2603004 r2603146  
    1919 * Plugin URI:        https://vuukle.com
    2020 * 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
    2222 * Author:            Vuukle
    2323 * Author URI:        https://vuukle.com
     
    7171 */
    7272function 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__ ) );
    7474    $plugin->run();
    7575}
  • free-comments-for-wordpress-vuukle/trunk/includes/class-free-comments-for-wordpress-vuukle-activator.php

    r2603004 r2603146  
    4545         */
    4646        $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 ) {
    4849            // Move to another row with option name Vuukle_App_Id
    4950            add_option( 'Vuukle_App_Id', $settings['AppId'] );
  • free-comments-for-wordpress-vuukle/trunk/includes/class-free-comments-for-wordpress-vuukle-helper.php

    r2603004 r2603146  
    242242    }
    243243
     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
    244264}
  • free-comments-for-wordpress-vuukle/trunk/includes/class-free-comments-for-wordpress-vuukle.php

    r2603004 r2603146  
    6969     *
    7070     */
    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 ) {
    7272        // Define main attributes
    7373        $this->attributes = [
    7474            'name'                     => 'free-comments-for-wordpress-vuukle',
     75            'base_name'                => $plugin_base_name,
    7576            'class_prefix'             => 'class-free-comments-for-wordpress-vuukle-',
    7677            'version'                  => $plugin_version,
     
    9798         */
    9899        $this->loadDependencies();
     100        $this->upgradeLiveCheck();
    99101        $this->setLocale();
    100102        $this->init();
     
    166168        $plugin_i18n = new Free_Comments_For_Wordpress_Vuukle_i18n();
    167169        $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();
    168179    }
    169180
Note: See TracChangeset for help on using the changeset viewer.