Changeset 3347542
- Timestamp:
- 08/20/2025 01:01:58 PM (7 months ago)
- Location:
- maintenance-mode-made-easy
- Files:
-
- 2 deleted
- 6 edited
- 1 copied
-
tags/1.0.8 (copied) (copied from maintenance-mode-made-easy/trunk)
-
tags/1.0.8/README.md (deleted)
-
tags/1.0.8/includes/classes/Backend/Admin.php (modified) (2 diffs)
-
tags/1.0.8/maintenance-mode-made-easy.php (modified) (1 diff)
-
tags/1.0.8/readme.txt (modified) (2 diffs)
-
trunk/README.md (deleted)
-
trunk/includes/classes/Backend/Admin.php (modified) (2 diffs)
-
trunk/maintenance-mode-made-easy.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
maintenance-mode-made-easy/tags/1.0.8/includes/classes/Backend/Admin.php
r3347524 r3347542 396 396 */ 397 397 public function bypass_roles_render() { 398 $selected_roles = Utils::get_option('bypass_roles') ;398 $selected_roles = Utils::get_option('bypass_roles') ?: array(); 399 399 $roles = wp_roles()->get_names(); 400 400 ?> 401 401 <div class="bypass-roles-wrapper"> 402 402 <select id="bypass_roles" 403 name="maintenance_mode_settings_polyplugins[bypass_roles][]"404 multiple="multiple"405 class="regular-text select2-hidden-accessible"406 data-placeholder="<?php _e('Select roles that can bypass maintenance mode after logging in', 'maintenance-mode-made-easy'); ?>">403 name="maintenance_mode_settings_polyplugins[bypass_roles][]" 404 multiple="multiple" 405 class="regular-text select2-hidden-accessible" 406 data-placeholder="<?php _e('Select roles that can bypass maintenance mode after logging in', 'maintenance-mode-made-easy'); ?>"> 407 407 <?php foreach ($roles as $role_key => $role_name) : 408 408 if ($role_key == 'administrator') continue; … … 434 434 <option value="custom"<?php echo $option == 'custom' ? ' selected' : ''; ?>>Custom</option> 435 435 </select> 436 <p><strong><?php _e('Selecting custom will allow you to build your own custom template. Simply create a maintenance.php file in', 'maintenance-mode-made-easy'); ?> /wp-content/themes/<?php echo esc_html(get_ template()); ?>/</strong></p>436 <p><strong><?php _e('Selecting custom will allow you to build your own custom template. Simply create a maintenance.php file in', 'maintenance-mode-made-easy'); ?> /wp-content/themes/<?php echo esc_html(get_stylesheet()); ?>/</strong></p> 437 437 <p><strong><?php _e("Note: If you don't use a child theme then updates to your theme will override the template.", 'maintenance-mode-made-easy'); ?></strong></p> 438 438 <p><strong><?php _e('Using your own custom template will not use any of the below settings.', 'maintenance-mode-made-easy'); ?></strong></p> -
maintenance-mode-made-easy/tags/1.0.8/maintenance-mode-made-easy.php
r3347524 r3347542 4 4 * Plugin Name: Maintenance Mode Made Easy 5 5 * Description: A lightweight plugin to display a maintenance mode message for visitors. 6 * Version: 1.0. 76 * Version: 1.0.8 7 7 * Requires at least: 6.5 8 8 * Requires PHP: 7.4 -
maintenance-mode-made-easy/tags/1.0.8/readme.txt
r3347524 r3347542 3 3 Tags: maintenance, maintenance mode, maintenance page, under construction, woocommerce 4 4 Tested up to: 6.7 5 Stable tag: 1.0. 75 Stable tag: 1.0.8 6 6 License: GPLv3 7 7 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 79 79 == Changelog == 80 80 81 = 1.0.8 = 82 * Bugfix: Child theme not showing as an example 83 * Bugfix: TypeError 84 81 85 = 1.0.7 = 82 86 * Added: Note about child theme -
maintenance-mode-made-easy/trunk/includes/classes/Backend/Admin.php
r3347524 r3347542 396 396 */ 397 397 public function bypass_roles_render() { 398 $selected_roles = Utils::get_option('bypass_roles') ;398 $selected_roles = Utils::get_option('bypass_roles') ?: array(); 399 399 $roles = wp_roles()->get_names(); 400 400 ?> 401 401 <div class="bypass-roles-wrapper"> 402 402 <select id="bypass_roles" 403 name="maintenance_mode_settings_polyplugins[bypass_roles][]"404 multiple="multiple"405 class="regular-text select2-hidden-accessible"406 data-placeholder="<?php _e('Select roles that can bypass maintenance mode after logging in', 'maintenance-mode-made-easy'); ?>">403 name="maintenance_mode_settings_polyplugins[bypass_roles][]" 404 multiple="multiple" 405 class="regular-text select2-hidden-accessible" 406 data-placeholder="<?php _e('Select roles that can bypass maintenance mode after logging in', 'maintenance-mode-made-easy'); ?>"> 407 407 <?php foreach ($roles as $role_key => $role_name) : 408 408 if ($role_key == 'administrator') continue; … … 434 434 <option value="custom"<?php echo $option == 'custom' ? ' selected' : ''; ?>>Custom</option> 435 435 </select> 436 <p><strong><?php _e('Selecting custom will allow you to build your own custom template. Simply create a maintenance.php file in', 'maintenance-mode-made-easy'); ?> /wp-content/themes/<?php echo esc_html(get_ template()); ?>/</strong></p>436 <p><strong><?php _e('Selecting custom will allow you to build your own custom template. Simply create a maintenance.php file in', 'maintenance-mode-made-easy'); ?> /wp-content/themes/<?php echo esc_html(get_stylesheet()); ?>/</strong></p> 437 437 <p><strong><?php _e("Note: If you don't use a child theme then updates to your theme will override the template.", 'maintenance-mode-made-easy'); ?></strong></p> 438 438 <p><strong><?php _e('Using your own custom template will not use any of the below settings.', 'maintenance-mode-made-easy'); ?></strong></p> -
maintenance-mode-made-easy/trunk/maintenance-mode-made-easy.php
r3347524 r3347542 4 4 * Plugin Name: Maintenance Mode Made Easy 5 5 * Description: A lightweight plugin to display a maintenance mode message for visitors. 6 * Version: 1.0. 76 * Version: 1.0.8 7 7 * Requires at least: 6.5 8 8 * Requires PHP: 7.4 -
maintenance-mode-made-easy/trunk/readme.txt
r3347524 r3347542 3 3 Tags: maintenance, maintenance mode, maintenance page, under construction, woocommerce 4 4 Tested up to: 6.7 5 Stable tag: 1.0. 75 Stable tag: 1.0.8 6 6 License: GPLv3 7 7 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 79 79 == Changelog == 80 80 81 = 1.0.8 = 82 * Bugfix: Child theme not showing as an example 83 * Bugfix: TypeError 84 81 85 = 1.0.7 = 82 86 * Added: Note about child theme
Note: See TracChangeset
for help on using the changeset viewer.