WP Maintenance - Version 6.0.1

Version Description

  • Bug fixed Code Analytics
Download this release

Release Info

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

Code changes from version 6.0.0 to 6.0.1

classes/wp-maintenance.php CHANGED
@@ -600,7 +600,7 @@ class WP_maintenance {
600
 
601
  // Récupère les ip autorisee
602
  $paramIpAddress = get_option('wp_maintenance_ipaddresses');
603
-
604
  /* Désactive le mode maintenance pour les IP définies */
605
  if( isset($paramIpAddress) ) {
606
  $lienIpAddress = explode("\n", $paramIpAddress);
@@ -682,7 +682,7 @@ class WP_maintenance {
682
  $dateCpt = '';
683
  }
684
 
685
- /* Si on a une page maintenance.php dans le theme */
686
  if ( file_exists( get_stylesheet_directory() ) && file_exists( get_stylesheet_directory() . '/maintenance.php')) {
687
  $urlTpl = get_stylesheet_directory() . '/maintenance.php';
688
  }
@@ -696,7 +696,7 @@ class WP_maintenance {
696
  if( isset($paramMMode['pageperso']) && $paramMMode['pageperso']==1 && $urlTpl !== '' ) {
697
  include_once( $urlTpl );
698
  die();
699
- }
700
 
701
  /* Si on désactive le mode maintenance en fin de compte à rebours */
702
  if( ( isset($paramMMode['disable']) && $paramMMode['disable']==1 ) && $this->wpm_check_active() == 1 ) {
600
 
601
  // Récupère les ip autorisee
602
  $paramIpAddress = get_option('wp_maintenance_ipaddresses');
603
+
604
  /* Désactive le mode maintenance pour les IP définies */
605
  if( isset($paramIpAddress) ) {
606
  $lienIpAddress = explode("\n", $paramIpAddress);
682
  $dateCpt = '';
683
  }
684
 
685
+ /* Si on a un epage maintenance.php dans le theme */
686
  if ( file_exists( get_stylesheet_directory() ) && file_exists( get_stylesheet_directory() . '/maintenance.php')) {
687
  $urlTpl = get_stylesheet_directory() . '/maintenance.php';
688
  }
696
  if( isset($paramMMode['pageperso']) && $paramMMode['pageperso']==1 && $urlTpl !== '' ) {
697
  include_once( $urlTpl );
698
  die();
699
+ }
700
 
701
  /* Si on désactive le mode maintenance en fin de compte à rebours */
702
  if( ( isset($paramMMode['disable']) && $paramMMode['disable']==1 ) && $this->wpm_check_active() == 1 ) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://paypal.me/restezconnectes/20/
4
  Tags: Maintenance, Construction, Launch, Coming soon
5
  Requires at least: 3.0
6
  Tested up to: 5.6
7
- Stable tag: 6.0.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -71,6 +71,9 @@ You can translate WP Maintenance on [__translate.wordpress.org__](https://transl
71
 
72
  == Changelog ==
73
 
 
 
 
74
  = 6.0.0 =
75
  * New design
76
  * This version is a major version and somes settings are changed. Check your settings after update.
4
  Tags: Maintenance, Construction, Launch, Coming soon
5
  Requires at least: 3.0
6
  Tested up to: 5.6
7
+ Stable tag: 6.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
71
 
72
  == Changelog ==
73
 
74
+ = 6.0.1 =
75
+ * Bug fixed Code Analytics
76
+
77
  = 6.0.0 =
78
  * New design
79
  * This version is a major version and somes settings are changed. Check your settings after update.
themes/default/functions.php CHANGED
@@ -280,10 +280,10 @@ function wpm_analytics() {
280
  if(get_option('wp_maintenance_settings')) { extract(get_option('wp_maintenance_settings')); }
281
  $o = get_option('wp_maintenance_settings');
282
 
283
- $output = '<!-- analytics ici '.$o['code_analytics'].' -->';
284
 
285
- if( isset($o['code_analytics']) && $o['code_analytics']!='') {
286
- $output = do_shortcode('[wpm_analytics enable="'.$o['code_analytics'].'"]');
287
  }
288
 
289
  return $output;
280
  if(get_option('wp_maintenance_settings')) { extract(get_option('wp_maintenance_settings')); }
281
  $o = get_option('wp_maintenance_settings');
282
 
283
+ $output = '<!-- analytics ici -->';
284
 
285
+ if( isset($o['codeanalytics']) && $o['codeanalytics']!='') {
286
+ $output = stripslashes($o['codeanalytics']);
287
  }
288
 
289
  return $output;
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://madeby.restezconnectes.fr
8
- * Version: 6.0.0
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', '6.0.0' ); }
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://madeby.restezconnectes.fr
8
+ * Version: 6.0.1
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', '6.0.1' ); }
40
 
41
  require WPM_DIR . 'classes/wp-maintenance.php';
42
  require WPM_DIR . 'classes/slider.php';