WP Maintenance - Version 5.0.2

Version Description

  • Fixed bug : conflict mode preview with others previews

=

Download this release

Release Info

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

Code changes from version 5.0.1 to 5.0.2

classes/wp-maintenance.php CHANGED
@@ -606,7 +606,7 @@ a.wpmadashicons:hover { text-decoration:none;color: '.$colors[2].'!important; }
606
  $statusActive = 0;
607
  }
608
  /* Mode Preview */
609
- if( isset($_GET['preview']) && $_GET['preview']=='true' ) {
610
  $statusActive = 1;
611
  }
612
 
@@ -638,6 +638,20 @@ a.wpmadashicons:hover { text-decoration:none;color: '.$colors[2].'!important; }
638
  $dateCpt = '';
639
  }
640
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
641
  /* Si on désactive le mode maintenance en fin de compte à rebours */
642
  if( ( isset($paramMMode['disable']) && $paramMMode['disable']==1 ) && $this->wpm_check_active() == 1 ) {
643
 
606
  $statusActive = 0;
607
  }
608
  /* Mode Preview */
609
+ if( isset($_GET['wpmpreview']) && $_GET['wpmpreview']=='true' ) {
610
  $statusActive = 1;
611
  }
612
 
638
  $dateCpt = '';
639
  }
640
 
641
+ /* Si on a un epage maintenance.php dans le theme */
642
+ if ( file_exists( get_stylesheet_directory() ) ) {
643
+ $urlTpl = get_stylesheet_directory();
644
+ } else {
645
+ $urlTpl = get_template_directory();
646
+ }
647
+
648
+ if( isset($paramMMode['pageperso']) && $paramMMode['pageperso']==1 && file_exists($urlTpl.'/maintenance.php') ) {
649
+
650
+ include_once( $urlTpl.'/maintenance.php' );
651
+ die();
652
+
653
+ }
654
+
655
  /* Si on désactive le mode maintenance en fin de compte à rebours */
656
  if( ( isset($paramMMode['disable']) && $paramMMode['disable']==1 ) && $this->wpm_check_active() == 1 ) {
657
 
includes/functions.php CHANGED
@@ -21,7 +21,7 @@ function wpm_get_header( $text = 'Settings', $dashicon = 'dashicons-admin-settin
21
  </h2>
22
  </div>';
23
  $getHeader .= '<div id="wpm-navdashicons">
24
- <div style="text-align:center;border-bottom: 1px solid #ddd;margin-bottom: 5px;">MENU</div><div style="text-align:center;">'.wpm_list_dashicons().' <a href="'.site_url().'/?preview=true" target="_blank" alt="'.__('Preview page', 'wp-maintenance').'" title="'.__('Preview page', 'wp-maintenance').'" class="wpmadashicons" onFocus="this.blur()"><span class="dashicons dashicons-external" style="font-size:25px;margin-right:15px;color:'.$colors[2].'" ></span></a></div>
25
  </div>';
26
  $getHeader .= '<div id="wpm-navmessage">';
27
  if( $update == 1 ) {
21
  </h2>
22
  </div>';
23
  $getHeader .= '<div id="wpm-navdashicons">
24
+ <div style="text-align:center;border-bottom: 1px solid #ddd;margin-bottom: 5px;">MENU</div><div style="text-align:center;">'.wpm_list_dashicons().' <a href="'.site_url().'/?wpmpreview=true" target="_blank" alt="'.__('Preview page', 'wp-maintenance').'" title="'.__('Preview page', 'wp-maintenance').'" class="wpmadashicons" onFocus="this.blur()"><span class="dashicons dashicons-external" style="font-size:25px;margin-right:15px;color:'.$colors[2].'" ></span></a></div>
25
  </div>';
26
  $getHeader .= '<div id="wpm-navmessage">';
27
  if( $update == 1 ) {
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: 5.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -67,11 +67,14 @@ You can translate WP Maintenance on [__translate.wordpress.org__](https://transl
67
 
68
  == Upgrade Notice ==
69
 
70
- = 5.0.1 =
71
- * Fixed bug : mode preview page
72
 
73
  == Changelog ==
74
 
 
 
 
75
  = 5.0.0 =
76
  * Adding SEO settings
77
  * Adding preview page
4
  Tags: Maintenance, Construction, Launch, Coming soon
5
  Requires at least: 3.0
6
  Tested up to: 4.9
7
+ Stable tag: 5.0.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
67
 
68
  == Upgrade Notice ==
69
 
70
+ = 5.0.2 =
71
+ * Fixed bug : conflict mode preview with others previews
72
 
73
  == Changelog ==
74
 
75
+ = 5.0.1 =
76
+ * Fixed bug : mode preview page
77
+
78
  = 5.0.0 =
79
  * Adding SEO settings
80
  * Adding preview page
themes/default/functions.php CHANGED
File without changes
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: 5.0.1
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', '5.0.1' ); }
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: 5.0.2
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', '5.0.2' ); }
40
 
41
  require WPM_DIR . 'classes/wp-maintenance.php';
42
  require WPM_DIR . 'classes/slider.php';