Plugin Directory

Changeset 3369048


Ignore:
Timestamp:
09/27/2025 11:50:29 PM (6 months ago)
Author:
fugudesign
Message:

Update to version v1.6.0 from GitHub

Location:
maintenance-switch
Files:
6 deleted
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • maintenance-switch/tags/v1.6.0/includes/class-maintenance-switch.php

    r1805892 r3369048  
    175175        $plugin_i18n->set_domain( $this->plugin_name );
    176176
    177         $this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );
     177        $this->loader->add_action( 'init', $plugin_i18n, 'load_plugin_textdomain' );
    178178
    179179    }
     
    933933
    934934        // get flags values
    935         $page_html = wp_specialchars_decode( $this->get_setting( 'ms_page_html' ), ENT_QUOTES );
     935        $page_html = htmlspecialchars_decode( $this->get_setting( 'ms_page_html' ), ENT_QUOTES );
    936936        $use_theme_file = $this->get_setting( 'ms_use_theme' );
    937937        $return503 = $this->get_setting( 'ms_error_503' );
  • maintenance-switch/tags/v1.6.0/maintenance-switch.php

    r1806414 r3369048  
    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.5.2
     19 * Version:           1.6.0
    2020 * Author:            Fugu
    2121 * Author URI:        http://www.fugu.fr
     
    4141 * @since    1.3.6
    4242 */
    43 define( 'PLUGIN_VERSION', '1.5.2' );
     43define( 'PLUGIN_VERSION', '1.6.0' );
    4444
    4545/**
  • maintenance-switch/tags/v1.6.0/readme.txt

    r1806414 r3369048  
    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.9
    7 Stable tag: 1.5.2
     6Tested up to: 6.3
     7Stable tag: 1.6.0
     8Requires PHP: 7.4
    89License: GPLv2 or later
    910License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    109110== Changelog ==
    110111
     112= 1.6.0 =
     113* WordPress 6.3 compatibility tested
     114* PHP 8.1 compatibility improvements
     115* Replace deprecated wp_specialchars_decode() with htmlspecialchars_decode()
     116* Fix fatal error with function redeclaration in .maintenance template
     117* Modernize plugin for current WordPress standards
     118
    111119= 1.5.2 =
    112120* Fix the preview page bug with code editor
  • maintenance-switch/tags/v1.6.0/templates/.maintenance

    r1805888 r3369048  
    99 */
    1010
    11 function MS_user_logged_in() {
    12     $loggedin = false;
    13     foreach ( (array) $_COOKIE as $cookie => $value ) {
    14         if ( stristr($cookie, 'wordpress_logged_in_') ) {
    15             $value_parts = explode( '|', $value );
    16             $loggedin = $value_parts[0];
    17         }
    18     }
    19     return $loggedin;
     11if ( ! function_exists( 'MS_user_logged_in' ) ) {
     12    function MS_user_logged_in() {
     13        $loggedin = false;
     14        foreach ( (array) $_COOKIE as $cookie => $value ) {
     15            if ( stristr($cookie, 'wordpress_logged_in_') ) {
     16                $value_parts = explode( '|', $value );
     17                $loggedin = $value_parts[0];
     18            }
     19        }
     20        return $loggedin;
     21    }
    2022}
    2123
  • maintenance-switch/trunk/includes/class-maintenance-switch.php

    r1805892 r3369048  
    175175        $plugin_i18n->set_domain( $this->plugin_name );
    176176
    177         $this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );
     177        $this->loader->add_action( 'init', $plugin_i18n, 'load_plugin_textdomain' );
    178178
    179179    }
     
    933933
    934934        // get flags values
    935         $page_html = wp_specialchars_decode( $this->get_setting( 'ms_page_html' ), ENT_QUOTES );
     935        $page_html = htmlspecialchars_decode( $this->get_setting( 'ms_page_html' ), ENT_QUOTES );
    936936        $use_theme_file = $this->get_setting( 'ms_use_theme' );
    937937        $return503 = $this->get_setting( 'ms_error_503' );
  • maintenance-switch/trunk/maintenance-switch.php

    r1806414 r3369048  
    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.5.2
     19 * Version:           1.6.0
    2020 * Author:            Fugu
    2121 * Author URI:        http://www.fugu.fr
     
    4141 * @since    1.3.6
    4242 */
    43 define( 'PLUGIN_VERSION', '1.5.2' );
     43define( 'PLUGIN_VERSION', '1.6.0' );
    4444
    4545/**
  • maintenance-switch/trunk/readme.txt

    r1806414 r3369048  
    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.9
    7 Stable tag: 1.5.2
     6Tested up to: 6.3
     7Stable tag: 1.6.0
     8Requires PHP: 7.4
    89License: GPLv2 or later
    910License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    109110== Changelog ==
    110111
     112= 1.6.0 =
     113* WordPress 6.3 compatibility tested
     114* PHP 8.1 compatibility improvements
     115* Replace deprecated wp_specialchars_decode() with htmlspecialchars_decode()
     116* Fix fatal error with function redeclaration in .maintenance template
     117* Modernize plugin for current WordPress standards
     118
    111119= 1.5.2 =
    112120* Fix the preview page bug with code editor
  • maintenance-switch/trunk/templates/.maintenance

    r1805888 r3369048  
    99 */
    1010
    11 function MS_user_logged_in() {
    12     $loggedin = false;
    13     foreach ( (array) $_COOKIE as $cookie => $value ) {
    14         if ( stristr($cookie, 'wordpress_logged_in_') ) {
    15             $value_parts = explode( '|', $value );
    16             $loggedin = $value_parts[0];
    17         }
    18     }
    19     return $loggedin;
     11if ( ! function_exists( 'MS_user_logged_in' ) ) {
     12    function MS_user_logged_in() {
     13        $loggedin = false;
     14        foreach ( (array) $_COOKIE as $cookie => $value ) {
     15            if ( stristr($cookie, 'wordpress_logged_in_') ) {
     16                $value_parts = explode( '|', $value );
     17                $loggedin = $value_parts[0];
     18            }
     19        }
     20        return $loggedin;
     21    }
    2022}
    2123
Note: See TracChangeset for help on using the changeset viewer.