Plugin Directory

Changeset 1476058


Ignore:
Timestamp:
08/16/2016 09:58:47 PM (10 years ago)
Author:
fugudesign
Message:
  • Fix a php in_array warning in admin display
Location:
maintenance-switch
Files:
47 added
5 edited

Legend:

Unmodified
Added
Removed
  • maintenance-switch/trunk/admin/views/maintenance-switch-admin-display.php

    r1409605 r1476058  
    241241            printf(
    242242                '<p class="inline-checkbox"><input id="ms_switch_roles" name="maintenance_switch_settings[ms_switch_roles][]" type="checkbox" value="' . $role_value . '" %s>'.$role_name.'</p>',
    243                 ( isset( $this->maintenance_switch_settings['ms_switch_roles'] ) && in_array( $role_value, $this->maintenance_switch_settings['ms_switch_roles'] ) ) ? 'checked' : ''
     243                ( isset( $this->maintenance_switch_settings['ms_switch_roles'] ) && in_array( $role_value, (array) $this->maintenance_switch_settings['ms_switch_roles'] ) ) ? 'checked' : ''
    244244            );
    245245        }
     
    258258            printf(
    259259                '<p class="inline-checkbox"><input id="ms_allowed_roles" name="maintenance_switch_settings[ms_allowed_roles][]" type="checkbox" value="' . $role_value . '" %s>'.$role_name.'</p>',
    260                 ( isset( $this->maintenance_switch_settings['ms_allowed_roles'] ) && in_array( $role_value, $this->maintenance_switch_settings['ms_allowed_roles'] ) ) ? 'checked' : ''
     260                ( isset( $this->maintenance_switch_settings['ms_allowed_roles'] ) && in_array( $role_value, (array) $this->maintenance_switch_settings['ms_allowed_roles'] ) ) ? 'checked' : ''
    261261            );
    262262        }
  • maintenance-switch/trunk/includes/class-maintenance-switch.php

    r1417540 r1476058  
    106106
    107107        $this->plugin_name = MS_SLUG;
    108         $this->version = '1.3.5';
     108        $this->version = MS_VERSION;
    109109        $this->default_settings = json_decode( MS_DEFAULT_SETTINGS, true );
    110110        $this->current_theme = wp_get_theme();
  • maintenance-switch/trunk/includes/config.php

    r1404482 r1476058  
    1010 * @subpackage Maintenance_Switch/includes
    1111 */
    12 
    13 
    14 /**
    15  * Path of the maintenance.php file.
    16  * @since    1.0.0
    17  */
    18 define( 'MS_SLUG', 'maintenance-switch' );
    1912
    2013/**
  • maintenance-switch/trunk/maintenance-switch.php

    r1417539 r1476058  
    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.5
     19 * Version:           1.3.6
    2020 * Author:            Fugu
    2121 * Author URI:        http://www.fugu.fr
     
    3030    die;
    3131}
     32
     33/**
     34 * Path of the maintenance.php file.
     35 * @since    1.0.0
     36 */
     37define( 'MS_SLUG', 'maintenance-switch' );
     38
     39/**
     40 * Path of the maintenance.php file.
     41 * @since    1.3.6
     42 */
     43define( 'MS_VERSION', '1.3.6' );
    3244
    3345/**
  • maintenance-switch/trunk/readme.txt

    r1417539 r1476058  
    55Requires at least: 3.5
    66Tested up to: 4.5.1
    7 Stable tag: 1.3.5
     7Stable tag: 1.3.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    104104== Changelog ==
    105105
     106= 1.3.6 =
     107* Fix a php in_array warning in admin display
     108
    106109= 1.3.5 =
    107110* Fix a php error in the admin
Note: See TracChangeset for help on using the changeset viewer.