Plugin Directory

Changeset 1409704


Ignore:
Timestamp:
05/03/2016 03:23:30 PM (10 years ago)
Author:
fugudesign
Message:
  • Fix a bug with migration of settings
Location:
maintenance-switch
Files:
47 added
3 edited

Legend:

Unmodified
Added
Removed
  • maintenance-switch/trunk/includes/class-maintenance-switch.php

    r1409605 r1409704  
    106106
    107107        $this->plugin_name = MS_SLUG;
    108         $this->version = '1.3.3';
     108        $this->version = '1.3.4';
    109109        $this->default_settings = json_decode( MS_DEFAULT_SETTINGS, true );
    110110        $this->current_theme = wp_get_theme();
     
    396396        // Merging database options with defaults options
    397397        if ( empty($settings) )
    398             $settings = wp_parse_args( $settings, $defaults );
     398            $settings = wp_parse_args( $defaults, $settings );
    399399       
    400400        // Merging options param with defaults options
    401401        if ( !empty( $options ) )
    402             $settings = wp_parse_args( $settings, $options );
     402            $settings = wp_parse_args( $options, $settings );
    403403       
    404404        // Save settings
  • maintenance-switch/trunk/maintenance-switch.php

    r1409605 r1409704  
    1717 * Plugin URI:        https://wordpress.org/plugins/maintenance-switch
    1818 * Description:       Customize easily and switch in one-click to (native) maintenance mode from your backend or frontend.
    19  * Version:           1.3.3
     19 * Version:           1.3.4
    2020 * Author:            Fugu
    2121 * Author URI:        http://www.fugu.fr
  • maintenance-switch/trunk/readme.txt

    r1409605 r1409704  
    44Tags: maintenance, maintenance mode, maintenance page, maintenance button, coming soon, coming soon page, mode, wordpress maintenance mode, site maintenance, offline, site offline, unavailable, switch, administration, construction, under construction, offline, fugu
    55Requires at least: 3.5
    6 Tested up to: 4.5
    7 Stable tag: 1.3.3
     6Tested up to: 4.5.1
     7Stable tag: 1.3.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    104104== Changelog ==
    105105
     106= 1.3.4 =
     107* Fix a bug with migration of settings
     108
    106109= 1.3.3 =
    107110* Fix bug with data saving
Note: See TracChangeset for help on using the changeset viewer.