Changeset 1476058
- Timestamp:
- 08/16/2016 09:58:47 PM (10 years ago)
- Location:
- maintenance-switch
- Files:
-
- 47 added
- 5 edited
-
tags/1.3.5 (added)
-
tags/1.3.5/LICENSE.txt (added)
-
tags/1.3.5/admin (added)
-
tags/1.3.5/admin/class-maintenance-switch-admin.php (added)
-
tags/1.3.5/admin/css (added)
-
tags/1.3.5/admin/css/maintenance-switch-admin.css (added)
-
tags/1.3.5/admin/css/maintenance-switch-admin.scss (added)
-
tags/1.3.5/admin/index.php (added)
-
tags/1.3.5/admin/js (added)
-
tags/1.3.5/admin/js/maintenance-switch-admin.js (added)
-
tags/1.3.5/admin/views (added)
-
tags/1.3.5/admin/views/maintenance-switch-admin-display.php (added)
-
tags/1.3.5/assets (added)
-
tags/1.3.5/assets/css (added)
-
tags/1.3.5/assets/css/maintenance-switch-button.css (added)
-
tags/1.3.5/assets/css/maintenance-switch-button.scss (added)
-
tags/1.3.5/assets/js (added)
-
tags/1.3.5/assets/js/maintenance-switch-button.js (added)
-
tags/1.3.5/includes (added)
-
tags/1.3.5/includes/class-maintenance-switch-activator.php (added)
-
tags/1.3.5/includes/class-maintenance-switch-deactivator.php (added)
-
tags/1.3.5/includes/class-maintenance-switch-i18n.php (added)
-
tags/1.3.5/includes/class-maintenance-switch-loader.php (added)
-
tags/1.3.5/includes/class-maintenance-switch.php (added)
-
tags/1.3.5/includes/config.php (added)
-
tags/1.3.5/includes/index.php (added)
-
tags/1.3.5/index.php (added)
-
tags/1.3.5/languages (added)
-
tags/1.3.5/languages/maintenance-switch-fr_FR.mo (added)
-
tags/1.3.5/languages/maintenance-switch-fr_FR.po (added)
-
tags/1.3.5/languages/maintenance-switch.pot (added)
-
tags/1.3.5/maintenance-switch.php (added)
-
tags/1.3.5/preview.php (added)
-
tags/1.3.5/public (added)
-
tags/1.3.5/public/class-maintenance-switch-public.php (added)
-
tags/1.3.5/public/css (added)
-
tags/1.3.5/public/css/maintenance-switch-public.css (added)
-
tags/1.3.5/public/index.php (added)
-
tags/1.3.5/public/js (added)
-
tags/1.3.5/public/js/maintenance-switch-public.js (added)
-
tags/1.3.5/public/views (added)
-
tags/1.3.5/public/views/maintenance-switch-public-display.php (added)
-
tags/1.3.5/readme.txt (added)
-
tags/1.3.5/templates (added)
-
tags/1.3.5/templates/.maintenance (added)
-
tags/1.3.5/templates/maintenance.php (added)
-
tags/1.3.5/uninstall.php (added)
-
trunk/admin/views/maintenance-switch-admin-display.php (modified) (2 diffs)
-
trunk/includes/class-maintenance-switch.php (modified) (1 diff)
-
trunk/includes/config.php (modified) (1 diff)
-
trunk/maintenance-switch.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
maintenance-switch/trunk/admin/views/maintenance-switch-admin-display.php
r1409605 r1476058 241 241 printf( 242 242 '<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' : '' 244 244 ); 245 245 } … … 258 258 printf( 259 259 '<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' : '' 261 261 ); 262 262 } -
maintenance-switch/trunk/includes/class-maintenance-switch.php
r1417540 r1476058 106 106 107 107 $this->plugin_name = MS_SLUG; 108 $this->version = '1.3.5';108 $this->version = MS_VERSION; 109 109 $this->default_settings = json_decode( MS_DEFAULT_SETTINGS, true ); 110 110 $this->current_theme = wp_get_theme(); -
maintenance-switch/trunk/includes/config.php
r1404482 r1476058 10 10 * @subpackage Maintenance_Switch/includes 11 11 */ 12 13 14 /**15 * Path of the maintenance.php file.16 * @since 1.0.017 */18 define( 'MS_SLUG', 'maintenance-switch' );19 12 20 13 /** -
maintenance-switch/trunk/maintenance-switch.php
r1417539 r1476058 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.3. 519 * Version: 1.3.6 20 20 * Author: Fugu 21 21 * Author URI: http://www.fugu.fr … … 30 30 die; 31 31 } 32 33 /** 34 * Path of the maintenance.php file. 35 * @since 1.0.0 36 */ 37 define( 'MS_SLUG', 'maintenance-switch' ); 38 39 /** 40 * Path of the maintenance.php file. 41 * @since 1.3.6 42 */ 43 define( 'MS_VERSION', '1.3.6' ); 32 44 33 45 /** -
maintenance-switch/trunk/readme.txt
r1417539 r1476058 5 5 Requires at least: 3.5 6 6 Tested up to: 4.5.1 7 Stable tag: 1.3. 57 Stable tag: 1.3.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 104 104 == Changelog == 105 105 106 = 1.3.6 = 107 * Fix a php in_array warning in admin display 108 106 109 = 1.3.5 = 107 110 * Fix a php error in the admin
Note: See TracChangeset
for help on using the changeset viewer.