WP Maintenance - Version 4.0.3

Version Description

  • Bug for roles and capacities fixed

=

Download this release

Release Info

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

Code changes from version 4.0.2 to 4.0.3

Files changed (3) hide show
  1. classes/wp-maintenance.php +3 -13
  2. readme.txt +6 -3
  3. wp-maintenance.php +2 -2
classes/wp-maintenance.php CHANGED
@@ -455,15 +455,6 @@ a.wpmadashicons:hover { text-decoration:none;color: '.$colors[2].'!important; }
455
  include(WPM_DIR."/views/wp-maintenance-settings.php");
456
  }
457
 
458
- /*function wpm_about_page() {
459
-
460
- //must check that the user has the required capability
461
- if (!current_user_can('manage_options')) {
462
- wp_die( __("You do not have sufficient privileges to access this page.", 'sponsorpress') );
463
- }
464
- include(WPM_DIR."/views/wp-maintenance-about.php");
465
- }*/
466
-
467
  function wpm_print_footer_scripts() {
468
 
469
  if (isset($_GET['page']) && strpos($_GET['page'], 'wp-maintenance') !==false) {
@@ -579,7 +570,7 @@ a.wpmadashicons:hover { text-decoration:none;color: '.$colors[2].'!important; }
579
  $lienIpAddress = explode("\n", $paramIpAddress);
580
  foreach($lienIpAddress as $ipAutorized) {
581
  if( strpos($ipAutorized, wpm_get_ip())!== false ) {
582
- $statusActive = 1;
583
  }
584
  }
585
 
@@ -592,7 +583,7 @@ a.wpmadashicons:hover { text-decoration:none;color: '.$colors[2].'!important; }
592
  if( isset($paramLimit) && count($paramLimit)>1 ) {
593
  foreach($paramLimit as $limitrole) {
594
  if( current_user_can($limitrole) == true ) {
595
- $statusActive = 1;
596
  }
597
  }
598
  }
@@ -602,9 +593,8 @@ a.wpmadashicons:hover { text-decoration:none;color: '.$colors[2].'!important; }
602
  $listPageId = explode(',', $paramMMode['id_pages']);
603
  foreach($listPageId as $keyPageId => $valPageId) {
604
  if( $valPageId == get_the_ID() ) {
605
- $statusActive = 1;
606
  }
607
- //echo 'Status: '.$statusActive.' - Page: '.$valPageId.' - ID:'.get_the_ID().'<br />';
608
  }
609
  }
610
 
455
  include(WPM_DIR."/views/wp-maintenance-settings.php");
456
  }
457
 
 
 
 
 
 
 
 
 
 
458
  function wpm_print_footer_scripts() {
459
 
460
  if (isset($_GET['page']) && strpos($_GET['page'], 'wp-maintenance') !==false) {
570
  $lienIpAddress = explode("\n", $paramIpAddress);
571
  foreach($lienIpAddress as $ipAutorized) {
572
  if( strpos($ipAutorized, wpm_get_ip())!== false ) {
573
+ $statusActive = 0;
574
  }
575
  }
576
 
583
  if( isset($paramLimit) && count($paramLimit)>1 ) {
584
  foreach($paramLimit as $limitrole) {
585
  if( current_user_can($limitrole) == true ) {
586
+ $statusActive = 0;
587
  }
588
  }
589
  }
593
  $listPageId = explode(',', $paramMMode['id_pages']);
594
  foreach($listPageId as $keyPageId => $valPageId) {
595
  if( $valPageId == get_the_ID() ) {
596
+ $statusActive = 0;
597
  }
 
598
  }
599
  }
600
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wpmaintenance.info/a-propos/
4
  Tags: Maintenance, Construction, Launch, Coming soon
5
  Requires at least: 3.0
6
  Tested up to: 4.9
7
- Stable tag: 4.0.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -67,12 +67,15 @@ You can translate WP Maintenance on [__translate.wordpress.org__](https://transl
67
 
68
  == Upgrade Notice ==
69
 
 
 
 
 
 
70
  = 4.0.2 =
71
  * Bug IP addresses fixed
72
  * Clean code
73
 
74
- == Changelog ==
75
-
76
  = 4.0.1 =
77
  * Bug iframe fixed
78
 
4
  Tags: Maintenance, Construction, Launch, Coming soon
5
  Requires at least: 3.0
6
  Tested up to: 4.9
7
+ Stable tag: 4.0.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
67
 
68
  == Upgrade Notice ==
69
 
70
+ = 4.0.3 =
71
+ * Bug for roles and capacities fixed
72
+
73
+ == Changelog ==
74
+
75
  = 4.0.2 =
76
  * Bug IP addresses fixed
77
  * Clean code
78
 
 
 
79
  = 4.0.1 =
80
  * Bug iframe fixed
81
 
wp-maintenance.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: 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...
6
  * Author: Florent Maillefaud
7
  * Author URI: https://wpmaintenance.info
8
- * Version: 4.0.2
9
  * Text Domain: wp-maintenance
10
  * Domain Path: /languages/
11
  */
@@ -36,7 +36,7 @@ define( 'WPM_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
36
  define( 'WPM_PLUGIN_URL', plugins_url().'/'.strtolower('wp-maintenance').'/');
37
  define( 'WPM_ICONS_URL', plugins_url().'/'.strtolower('wp-maintenance').'/socialicons/');
38
 
39
- if( !defined( 'WPM_VERSION' )) { define( 'WPM_VERSION', '4.0.2' ); }
40
 
41
  require WPM_DIR . 'classes/wp-maintenance.php';
42
  require WPM_DIR . 'classes/slider.php';
5
  * Description: 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...
6
  * Author: Florent Maillefaud
7
  * Author URI: https://wpmaintenance.info
8
+ * Version: 4.0.3
9
  * Text Domain: wp-maintenance
10
  * Domain Path: /languages/
11
  */
36
  define( 'WPM_PLUGIN_URL', plugins_url().'/'.strtolower('wp-maintenance').'/');
37
  define( 'WPM_ICONS_URL', plugins_url().'/'.strtolower('wp-maintenance').'/socialicons/');
38
 
39
+ if( !defined( 'WPM_VERSION' )) { define( 'WPM_VERSION', '4.0.3' ); }
40
 
41
  require WPM_DIR . 'classes/wp-maintenance.php';
42
  require WPM_DIR . 'classes/slider.php';