Plugin Directory

Changeset 2395169


Ignore:
Timestamp:
10/07/2020 10:56:24 AM (5 years ago)
Author:
ngoclb
Message:

tag v2.2.1

Location:
wp-pleasewait/tags/2.2.1
Files:
9 copied

Legend:

Unmodified
Added
Removed
  • wp-pleasewait/tags/2.2.1/pleasewait-settings.php

    r2395118 r2395169  
    22class WpPleaseWait_SettingsPage
    33{
    4     const CURRENT_VERSION    = '2.2.0';
     4    const CURRENT_VERSION    = '2.2.1';
    55    const SPINKIT_VERSION    = '2.0.1'; // https: //github.com/tobiasahlin/SpinKit
    66    const PLEASEWAIT_VERSION = '0.0.5'; // https: //github.com/Pathgather/please-wait
     
    156156    public function __construct()
    157157    {
    158         $this->options = get_option('wppleasewait_settings');
    159         // print_r($this->options); die;
    160158        $this->default_options['hook_name'] = $this->get_hook_name();
     159        $this->get_options();
    161160        if (is_admin()) {
    162161            add_action('admin_enqueue_scripts', array($this, 'load_admin_assets'), 9);
     
    857856    public function get_options()
    858857    {
    859         $options = $this->options ? $this->options : array();
    860         if (isset($options['spinner_scale'])) { // Migrate with older version
    861             $options['sk_size'] = floatval($options['spinner_scale']) * $this->default_options['sk_size'];
    862             unset($options['spinner_scale']);
    863         }
    864         return array_merge($this->default_options, $options);
     858        if (!$this->options) {
     859            $options = get_option('wppleasewait_settings', array());
     860            if (isset($options['spinner_scale'])) { // Migrate with older version
     861                $options['sk_size'] = floatval($options['spinner_scale']) * $this->default_options['sk_size'];
     862                unset($options['spinner_scale']);
     863            }
     864            $this->options = array_merge($this->default_options, $options);
     865        }
     866        return $this->options;
    865867    }
    866868
  • wp-pleasewait/tags/2.2.1/pleasewait.php

    r2395118 r2395169  
    55Plugin URI:   https://ngoclb.com/project/wp-please-wait
    66Description:  Add PleaseWait loading screen to currrent theme
    7 Version:      2.2.0
     7Version:      2.2.1
    88Author:       Ngoc LB
    99Author URI:   https://ngoclb.com/
  • wp-pleasewait/tags/2.2.1/readme.txt

    r2395118 r2395169  
    33Donate link: https://ko-fi.com/ngoclb
    44Tags: pleasewait, loading, loader, spa, animation, loading screen, loading page, page effects, page loader, spash, splash screen
    5 Stable tag: 2.2.0
     5Stable tag: 2.2.1
    66Requires PHP: 5.4.33
    77Requires at least: 3.3
     
    2323* Custom loading message by filter or randomize
    2424* Custom appearance styles from WP Admin
    25 * Support [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/) (Turn off "CSS Combine" and "JS Combine" to make sure the plugin working perfectly)
    2625* Support [Genesis framework](https://my.studiopress.com/themes/genesis/)
    2726* Support [Roots Sage Starter Theme](https://roots.io/sage/)
     
    5756== Changelog ==
    5857
    59 **2.2.0**
     58**2.2.1**
    6059- Enable/Disable loading screen by add "Display Scopes" option
    6160- Add new filter name "wp_pleasewait_enable" for customize where to show loading screen
Note: See TracChangeset for help on using the changeset viewer.