WP Maintenance Mode - Version 2.0.5

Version Description

(17/06/2016) = * roles (array) fix

Download this release

Release Info

Developer GeorgeJipa
Plugin Icon 128x128 WP Maintenance Mode
Version 2.0.5
Comparing to
See all releases

Code changes from version 2.0.4 to 2.0.5

includes/classes/wp-maintenance-mode.php CHANGED
@@ -4,7 +4,7 @@ if (!class_exists('WP_Maintenance_Mode')) {
4
 
5
  class WP_Maintenance_Mode {
6
 
7
- const VERSION = '2.0.4';
8
 
9
  protected $plugin_slug = 'wp-maintenance-mode';
10
  protected $plugin_settings;
@@ -533,7 +533,7 @@ if (!class_exists('WP_Maintenance_Mode')) {
533
 
534
  $user = wp_get_current_user();
535
  $user_roles = !empty($user->roles) && is_array($user->roles) ? $user->roles : array();
536
- $allowed_roles = is_admin() ? $this->plugin_settings['general']['backend_role'] : $this->plugin_settings['general']['frontend_role'];
537
  $is_allowed = (bool) array_intersect($user_roles, $allowed_roles);
538
 
539
  // echo "<pre>";
4
 
5
  class WP_Maintenance_Mode {
6
 
7
+ const VERSION = '2.0.5';
8
 
9
  protected $plugin_slug = 'wp-maintenance-mode';
10
  protected $plugin_settings;
533
 
534
  $user = wp_get_current_user();
535
  $user_roles = !empty($user->roles) && is_array($user->roles) ? $user->roles : array();
536
+ $allowed_roles = is_admin() ? (array) $this->plugin_settings['general']['backend_role'] : (array) $this->plugin_settings['general']['frontend_role'];
537
  $is_allowed = (bool) array_intersect($user_roles, $allowed_roles);
538
 
539
  // echo "<pre>";
readme.md CHANGED
@@ -1,4 +1,4 @@
1
- # Version 2.0.4
2
 
3
  # WP Maintenance Mode
4
 
1
+ # Version 2.0.5
2
 
3
  # WP Maintenance Mode
4
 
readme.txt CHANGED
@@ -7,7 +7,7 @@ Author URI: http://designmodo.com/
7
  Tags: maintenance mode, admin, administration, unavailable, coming soon, multisite, landing page, under construction, contact form, subscribe, countdown
8
  Requires at least: 3.5
9
  Tested up to: 4.5.2
10
- Stable tag: 2.0.4
11
  License: GPL-2.0+
12
 
13
  Adds a splash page to your site that lets visitors know your site is down for maintenance. It's perfect for a coming soon page.
@@ -71,6 +71,9 @@ If you change your login url, please add the new slug (url: http://domain.com/ne
71
 
72
  == Changelog ==
73
 
 
 
 
74
  = 2.0.4 (17/06/2016) =
75
  * fixed issue: responsive subscribe form
76
  * fixed issue: jQuery was loaded from a different folder on some WP installations
7
  Tags: maintenance mode, admin, administration, unavailable, coming soon, multisite, landing page, under construction, contact form, subscribe, countdown
8
  Requires at least: 3.5
9
  Tested up to: 4.5.2
10
+ Stable tag: 2.0.5
11
  License: GPL-2.0+
12
 
13
  Adds a splash page to your site that lets visitors know your site is down for maintenance. It's perfect for a coming soon page.
71
 
72
  == Changelog ==
73
 
74
+ = 2.0.5 (17/06/2016) =
75
+ * roles (array) fix
76
+
77
  = 2.0.4 (17/06/2016) =
78
  * fixed issue: responsive subscribe form
79
  * fixed issue: jQuery was loaded from a different folder on some WP installations
wp-maintenance-mode.php CHANGED
@@ -6,7 +6,7 @@
6
  * Plugin Name: WP Maintenance Mode
7
  * Plugin URI: http://designmodo.com/
8
  * Description: Adds a splash page to your site that lets visitors know your site is down for maintenance. It's perfect for a coming soon page.
9
- * Version: 2.0.4
10
  * Author: Designmodo
11
  * Author URI: http://designmodo.com/
12
  * Twitter: designmodo
6
  * Plugin Name: WP Maintenance Mode
7
  * Plugin URI: http://designmodo.com/
8
  * Description: Adds a splash page to your site that lets visitors know your site is down for maintenance. It's perfect for a coming soon page.
9
+ * Version: 2.0.5
10
  * Author: Designmodo
11
  * Author URI: http://designmodo.com/
12
  * Twitter: designmodo