WP Maintenance - Version 2.7.0

Version Description

Cette version est stable / This version is stable

=

Download this release

Release Info

Developer Florent73
Plugin Icon 128x128 WP Maintenance
Version 2.7.0
Comparing to
See all releases

Code changes from version 2.6.9 to 2.7.0

Files changed (2) hide show
  1. readme.txt +5 -2
  2. wp-maintenance.php +4 -4
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wpmaintenance.shost.ca/a-propos/
4
  Tags: WordPress.com, maintenance, atttente, pause, travaux, construction, launch, coming soon
5
  Requires at least: 3.0
6
  Tested up to: 4.4
7
- Stable tag: 2.6.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -67,11 +67,14 @@ Oui mais merci de me soumettre les modifications souhaitées afin de mettre à j
67
 
68
  == Upgrade Notice ==
69
 
70
- = 2.6.9 =
71
  Cette version est stable / This version is stable
72
 
73
  == Changelog ==
74
 
 
 
 
75
  = 2.6.9 =
76
  * Correction de bugs. Ajout de l'autorisation par IP / Fixed bugs. Add authorization by IP
77
 
4
  Tags: WordPress.com, maintenance, atttente, pause, travaux, construction, launch, coming soon
5
  Requires at least: 3.0
6
  Tested up to: 4.4
7
+ Stable tag: 2.7.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
67
 
68
  == Upgrade Notice ==
69
 
70
+ = 2.7.0 =
71
  Cette version est stable / This version is stable
72
 
73
  == Changelog ==
74
 
75
+ = 2.7.0 =
76
+ * Correction de bugs. Compatible version 4.4 / Fixed bugs. Version 4.4 compatible
77
+
78
  = 2.6.9 =
79
  * Correction de bugs. Ajout de l'autorisation par IP / Fixed bugs. Add authorization by IP
80
 
wp-maintenance.php CHANGED
@@ -6,7 +6,7 @@
6
  * Description: Le plugin WP Maintenance vous permet de mettre votre site en attente le temps pour vous de faire une maintenance ou du lancement de votre site. Personnalisez cette page de maintenance avec une image, un compte à rebours, etc... / The WP Maintenance plugin allows you to put your website on the waiting time for you to do maintenance or launch your website. Personalize this page with picture, countdown...
7
  * Author: Florent Maillefaud
8
  * Author URI: https://wpmaintenance.shost.ca
9
- * Version: 2.6.9
10
  * Text Domain: wp-maintenance
11
  * Domain Path: /languages/
12
  */
@@ -77,7 +77,7 @@ function wpm_make_multilang() {
77
  }
78
 
79
  /* Ajoute la version dans les options */
80
- define('WPM_VERSION', '2.6.9');
81
  $option['wp_maintenance_version'] = WPM_VERSION;
82
  if( !get_option('wp_maintenance_version') ) {
83
  add_option('wp_maintenance_version', $option);
@@ -339,7 +339,7 @@ function wpm_maintenance_mode() {
339
  if(get_option('wp_maintenance_settings')) { extract(get_option('wp_maintenance_settings')); }
340
  $paramMMode = get_option('wp_maintenance_settings');
341
 
342
- if($paramMMode) {
343
  foreach($paramMMode as $var =>$value) {
344
  $paramMMode[$var] = ''.$value.'';
345
  }
@@ -369,7 +369,7 @@ function wpm_maintenance_mode() {
369
  }
370
 
371
  /* Désactive le mode maintenance pour les Roles définis */
372
- if( isset($paramLimit) ) {
373
  foreach($paramLimit as $limitrole) {
374
  if( current_user_can($limitrole) == true ) {
375
  $statusActive = 0;
6
  * Description: Le plugin WP Maintenance vous permet de mettre votre site en attente le temps pour vous de faire une maintenance ou du lancement de votre site. Personnalisez cette page de maintenance avec une image, un compte à rebours, etc... / The WP Maintenance plugin allows you to put your website on the waiting time for you to do maintenance or launch your website. Personalize this page with picture, countdown...
7
  * Author: Florent Maillefaud
8
  * Author URI: https://wpmaintenance.shost.ca
9
+ * Version: 2.7.0
10
  * Text Domain: wp-maintenance
11
  * Domain Path: /languages/
12
  */
77
  }
78
 
79
  /* Ajoute la version dans les options */
80
+ define('WPM_VERSION', '2.7.0');
81
  $option['wp_maintenance_version'] = WPM_VERSION;
82
  if( !get_option('wp_maintenance_version') ) {
83
  add_option('wp_maintenance_version', $option);
339
  if(get_option('wp_maintenance_settings')) { extract(get_option('wp_maintenance_settings')); }
340
  $paramMMode = get_option('wp_maintenance_settings');
341
 
342
+ if( isset($paramMMode) ) {
343
  foreach($paramMMode as $var =>$value) {
344
  $paramMMode[$var] = ''.$value.'';
345
  }
369
  }
370
 
371
  /* Désactive le mode maintenance pour les Roles définis */
372
+ if( isset($paramLimit) && count($paramLimit)>1 ) {
373
  foreach($paramLimit as $limitrole) {
374
  if( current_user_can($limitrole) == true ) {
375
  $statusActive = 0;