Changeset 3369048
- Timestamp:
- 09/27/2025 11:50:29 PM (6 months ago)
- Location:
- maintenance-switch
- Files:
-
- 6 deleted
- 8 edited
- 1 copied
-
tags/v1.6.0 (copied) (copied from maintenance-switch/trunk)
-
tags/v1.6.0/gulpfile.js (deleted)
-
tags/v1.6.0/includes/class-maintenance-switch.php (modified) (2 diffs)
-
tags/v1.6.0/maintenance-switch.php (modified) (2 diffs)
-
tags/v1.6.0/package-lock.json (deleted)
-
tags/v1.6.0/package.json (deleted)
-
tags/v1.6.0/readme.txt (modified) (2 diffs)
-
tags/v1.6.0/templates/.maintenance (modified) (1 diff)
-
trunk/gulpfile.js (deleted)
-
trunk/includes/class-maintenance-switch.php (modified) (2 diffs)
-
trunk/maintenance-switch.php (modified) (2 diffs)
-
trunk/package-lock.json (deleted)
-
trunk/package.json (deleted)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/templates/.maintenance (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
maintenance-switch/tags/v1.6.0/includes/class-maintenance-switch.php
r1805892 r3369048 175 175 $plugin_i18n->set_domain( $this->plugin_name ); 176 176 177 $this->loader->add_action( ' plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );177 $this->loader->add_action( 'init', $plugin_i18n, 'load_plugin_textdomain' ); 178 178 179 179 } … … 933 933 934 934 // 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 ); 936 936 $use_theme_file = $this->get_setting( 'ms_use_theme' ); 937 937 $return503 = $this->get_setting( 'ms_error_503' ); -
maintenance-switch/tags/v1.6.0/maintenance-switch.php
r1806414 r3369048 17 17 * Plugin URI: https://wordpress.org/plugins/maintenance-switch 18 18 * Description: Customize easily and switch in one-click to (native) maintenance mode from your backend or frontend. 19 * Version: 1. 5.219 * Version: 1.6.0 20 20 * Author: Fugu 21 21 * Author URI: http://www.fugu.fr … … 41 41 * @since 1.3.6 42 42 */ 43 define( 'PLUGIN_VERSION', '1. 5.2' );43 define( 'PLUGIN_VERSION', '1.6.0' ); 44 44 45 45 /** -
maintenance-switch/tags/v1.6.0/readme.txt
r1806414 r3369048 4 4 Tags: 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 5 5 Requires at least: 3.5 6 Tested up to: 4.9 7 Stable tag: 1.5.2 6 Tested up to: 6.3 7 Stable tag: 1.6.0 8 Requires PHP: 7.4 8 9 License: GPLv2 or later 9 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 109 110 == Changelog == 110 111 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 111 119 = 1.5.2 = 112 120 * Fix the preview page bug with code editor -
maintenance-switch/tags/v1.6.0/templates/.maintenance
r1805888 r3369048 9 9 */ 10 10 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; 11 if ( ! 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 } 20 22 } 21 23 -
maintenance-switch/trunk/includes/class-maintenance-switch.php
r1805892 r3369048 175 175 $plugin_i18n->set_domain( $this->plugin_name ); 176 176 177 $this->loader->add_action( ' plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );177 $this->loader->add_action( 'init', $plugin_i18n, 'load_plugin_textdomain' ); 178 178 179 179 } … … 933 933 934 934 // 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 ); 936 936 $use_theme_file = $this->get_setting( 'ms_use_theme' ); 937 937 $return503 = $this->get_setting( 'ms_error_503' ); -
maintenance-switch/trunk/maintenance-switch.php
r1806414 r3369048 17 17 * Plugin URI: https://wordpress.org/plugins/maintenance-switch 18 18 * Description: Customize easily and switch in one-click to (native) maintenance mode from your backend or frontend. 19 * Version: 1. 5.219 * Version: 1.6.0 20 20 * Author: Fugu 21 21 * Author URI: http://www.fugu.fr … … 41 41 * @since 1.3.6 42 42 */ 43 define( 'PLUGIN_VERSION', '1. 5.2' );43 define( 'PLUGIN_VERSION', '1.6.0' ); 44 44 45 45 /** -
maintenance-switch/trunk/readme.txt
r1806414 r3369048 4 4 Tags: 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 5 5 Requires at least: 3.5 6 Tested up to: 4.9 7 Stable tag: 1.5.2 6 Tested up to: 6.3 7 Stable tag: 1.6.0 8 Requires PHP: 7.4 8 9 License: GPLv2 or later 9 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 109 110 == Changelog == 110 111 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 111 119 = 1.5.2 = 112 120 * Fix the preview page bug with code editor -
maintenance-switch/trunk/templates/.maintenance
r1805888 r3369048 9 9 */ 10 10 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; 11 if ( ! 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 } 20 22 } 21 23
Note: See TracChangeset
for help on using the changeset viewer.