Plugin Directory

Changeset 3347542


Ignore:
Timestamp:
08/20/2025 01:01:58 PM (7 months ago)
Author:
polyplugins
Message:

Update to version 1.0.8 from GitHub

Location:
maintenance-mode-made-easy
Files:
2 deleted
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • maintenance-mode-made-easy/tags/1.0.8/includes/classes/Backend/Admin.php

    r3347524 r3347542  
    396396     */
    397397    public function bypass_roles_render() {
    398     $selected_roles = Utils::get_option('bypass_roles');
     398    $selected_roles = Utils::get_option('bypass_roles') ?: array();
    399399    $roles = wp_roles()->get_names();
    400400    ?>
    401401    <div class="bypass-roles-wrapper">
    402402    <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'); ?>">
    407407      <?php foreach ($roles as $role_key => $role_name) :
    408408        if ($role_key == 'administrator') continue;
     
    434434      <option value="custom"<?php echo $option == 'custom' ? ' selected' : ''; ?>>Custom</option>
    435435    </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>
    437437    <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>
    438438    <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  
    44 * Plugin Name: Maintenance Mode Made Easy
    55 * Description: A lightweight plugin to display a maintenance mode message for visitors.
    6  * Version: 1.0.7
     6 * Version: 1.0.8
    77 * Requires at least: 6.5
    88 * Requires PHP: 7.4
  • maintenance-mode-made-easy/tags/1.0.8/readme.txt

    r3347524 r3347542  
    33Tags: maintenance, maintenance mode, maintenance page, under construction, woocommerce
    44Tested up to: 6.7
    5 Stable tag: 1.0.7
     5Stable tag: 1.0.8
    66License: GPLv3
    77License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    7979== Changelog ==
    8080
     81= 1.0.8 =
     82* Bugfix: Child theme not showing as an example
     83* Bugfix: TypeError
     84
    8185= 1.0.7 =
    8286* Added: Note about child theme
  • maintenance-mode-made-easy/trunk/includes/classes/Backend/Admin.php

    r3347524 r3347542  
    396396     */
    397397    public function bypass_roles_render() {
    398     $selected_roles = Utils::get_option('bypass_roles');
     398    $selected_roles = Utils::get_option('bypass_roles') ?: array();
    399399    $roles = wp_roles()->get_names();
    400400    ?>
    401401    <div class="bypass-roles-wrapper">
    402402    <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'); ?>">
    407407      <?php foreach ($roles as $role_key => $role_name) :
    408408        if ($role_key == 'administrator') continue;
     
    434434      <option value="custom"<?php echo $option == 'custom' ? ' selected' : ''; ?>>Custom</option>
    435435    </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>
    437437    <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>
    438438    <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  
    44 * Plugin Name: Maintenance Mode Made Easy
    55 * Description: A lightweight plugin to display a maintenance mode message for visitors.
    6  * Version: 1.0.7
     6 * Version: 1.0.8
    77 * Requires at least: 6.5
    88 * Requires PHP: 7.4
  • maintenance-mode-made-easy/trunk/readme.txt

    r3347524 r3347542  
    33Tags: maintenance, maintenance mode, maintenance page, under construction, woocommerce
    44Tested up to: 6.7
    5 Stable tag: 1.0.7
     5Stable tag: 1.0.8
    66License: GPLv3
    77License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    7979== Changelog ==
    8080
     81= 1.0.8 =
     82* Bugfix: Child theme not showing as an example
     83* Bugfix: TypeError
     84
    8185= 1.0.7 =
    8286* Added: Note about child theme
Note: See TracChangeset for help on using the changeset viewer.