WP Maintenance Mode - Version 2.5.3

Version Description

Download this release

Release Info

Developer themeisle
Plugin Icon 128x128 WP Maintenance Mode
Version 2.5.3
Comparing to
See all releases

Code changes from version 2.5.2 to 2.5.3

CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  ##### [Version 2.5.2](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.5.1...v2.5.2) (2022-09-27)
2
 
3
  * Fix maintenance mode issue for previously logged users [#321](https://github.com/Codeinwp/wp-maintenance-mode/issues/321)
1
+ ##### [Version 2.5.3](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.5.2...v2.5.3) (2022-09-28)
2
+
3
+ * Fix wrong template loaded when the current post template is empty.
4
+
5
  ##### [Version 2.5.2](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.5.1...v2.5.2) (2022-09-27)
6
 
7
  * Fix maintenance mode issue for previously logged users [#321](https://github.com/Codeinwp/wp-maintenance-mode/issues/321)
README.md CHANGED
@@ -7,7 +7,7 @@
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:** 6.0
10
- **Stable tag:** 2.5.2
11
  **Requires PHP:** 5.6
12
  **License:** GPL-2.0+
13
 
@@ -91,6 +91,13 @@ Notice: `wp-cron.php` is excluded by default.
91
 
92
  ## Changelog ##
93
 
 
 
 
 
 
 
 
94
  ##### [Version 2.5.2](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.5.1...v2.5.2) (2022-09-27)
95
 
96
  * Fix maintenance mode issue for previously logged users [#321](https://github.com/Codeinwp/wp-maintenance-mode/issues/321)
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:** 6.0
10
+ **Stable tag:** 2.5.3
11
  **Requires PHP:** 5.6
12
  **License:** GPL-2.0+
13
 
91
 
92
  ## Changelog ##
93
 
94
+ ##### [Version 2.5.3](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.5.2...v2.5.3) (2022-09-28)
95
+
96
+ * Fix wrong template loaded when the current post template is empty.
97
+
98
+
99
+
100
+
101
  ##### [Version 2.5.2](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.5.1...v2.5.2) (2022-09-27)
102
 
103
  * Fix maintenance mode issue for previously logged users [#321](https://github.com/Codeinwp/wp-maintenance-mode/issues/321)
includes/classes/wp-maintenance-mode.php CHANGED
@@ -8,7 +8,7 @@ if ( ! class_exists( 'WP_Maintenance_Mode' ) ) {
8
 
9
  class WP_Maintenance_Mode {
10
 
11
- const VERSION = '2.5.2';
12
 
13
  protected $plugin_slug = 'wp-maintenance-mode';
14
  protected $plugin_settings;
@@ -1002,7 +1002,11 @@ if ( ! class_exists( 'WP_Maintenance_Mode' ) ) {
1002
  }
1003
 
1004
  $current_template = get_post_meta( $post->ID, '_wp_page_template', true );
1005
- if ( ! empty( $current_template ) && 'templates/wpmm-page-template.php' !== $current_template ) {
 
 
 
 
1006
  return $template;
1007
  }
1008
 
8
 
9
  class WP_Maintenance_Mode {
10
 
11
+ const VERSION = '2.5.3';
12
 
13
  protected $plugin_slug = 'wp-maintenance-mode';
14
  protected $plugin_settings;
1002
  }
1003
 
1004
  $current_template = get_post_meta( $post->ID, '_wp_page_template', true );
1005
+
1006
+ if ( empty( $current_template ) ) {
1007
+ return $template;
1008
+ }
1009
+ if ( 'templates/wpmm-page-template.php' !== $current_template ) {
1010
  return $template;
1011
  }
1012
 
readme.txt CHANGED
@@ -7,7 +7,7 @@ Author URI: https://themeisle.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: 6.0
10
- Stable tag: 2.5.2
11
  Requires PHP: 5.6
12
  License: GPL-2.0+
13
 
@@ -91,6 +91,13 @@ Notice: `wp-cron.php` is excluded by default.
91
 
92
  == Changelog ==
93
 
 
 
 
 
 
 
 
94
  ##### [Version 2.5.2](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.5.1...v2.5.2) (2022-09-27)
95
 
96
  * Fix maintenance mode issue for previously logged users [#321](https://github.com/Codeinwp/wp-maintenance-mode/issues/321)
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: 6.0
10
+ Stable tag: 2.5.3
11
  Requires PHP: 5.6
12
  License: GPL-2.0+
13
 
91
 
92
  == Changelog ==
93
 
94
+ ##### [Version 2.5.3](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.5.2...v2.5.3) (2022-09-28)
95
+
96
+ * Fix wrong template loaded when the current post template is empty.
97
+
98
+
99
+
100
+
101
  ##### [Version 2.5.2](https://github.com/Codeinwp/wp-maintenance-mode/compare/v2.5.1...v2.5.2) (2022-09-27)
102
 
103
  * Fix maintenance mode issue for previously logged users [#321](https://github.com/Codeinwp/wp-maintenance-mode/issues/321)
vendor/autoload.php CHANGED
@@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
9
 
10
  require_once __DIR__ . '/composer/autoload_real.php';
11
 
12
- return ComposerAutoloaderInita31e0d940a95177a20aa598bfdf190f6::getLoader();
9
 
10
  require_once __DIR__ . '/composer/autoload_real.php';
11
 
12
+ return ComposerAutoloaderInit8a7b1839e60b923aa52327f250618296::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInita31e0d940a95177a20aa598bfdf190f6
6
  {
7
  private static $loader;
8
 
@@ -22,18 +22,18 @@ class ComposerAutoloaderInita31e0d940a95177a20aa598bfdf190f6
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInita31e0d940a95177a20aa598bfdf190f6', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27
- spl_autoload_unregister(array('ComposerAutoloaderInita31e0d940a95177a20aa598bfdf190f6', 'loadClassLoader'));
28
 
29
  require __DIR__ . '/autoload_static.php';
30
- call_user_func(\Composer\Autoload\ComposerStaticInita31e0d940a95177a20aa598bfdf190f6::getInitializer($loader));
31
 
32
  $loader->register(true);
33
 
34
- $includeFiles = \Composer\Autoload\ComposerStaticInita31e0d940a95177a20aa598bfdf190f6::$files;
35
  foreach ($includeFiles as $fileIdentifier => $file) {
36
- composerRequirea31e0d940a95177a20aa598bfdf190f6($fileIdentifier, $file);
37
  }
38
 
39
  return $loader;
@@ -45,7 +45,7 @@ class ComposerAutoloaderInita31e0d940a95177a20aa598bfdf190f6
45
  * @param string $file
46
  * @return void
47
  */
48
- function composerRequirea31e0d940a95177a20aa598bfdf190f6($fileIdentifier, $file)
49
  {
50
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
51
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit8a7b1839e60b923aa52327f250618296
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit8a7b1839e60b923aa52327f250618296', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit8a7b1839e60b923aa52327f250618296', 'loadClassLoader'));
28
 
29
  require __DIR__ . '/autoload_static.php';
30
+ call_user_func(\Composer\Autoload\ComposerStaticInit8a7b1839e60b923aa52327f250618296::getInitializer($loader));
31
 
32
  $loader->register(true);
33
 
34
+ $includeFiles = \Composer\Autoload\ComposerStaticInit8a7b1839e60b923aa52327f250618296::$files;
35
  foreach ($includeFiles as $fileIdentifier => $file) {
36
+ composerRequire8a7b1839e60b923aa52327f250618296($fileIdentifier, $file);
37
  }
38
 
39
  return $loader;
45
  * @param string $file
46
  * @return void
47
  */
48
+ function composerRequire8a7b1839e60b923aa52327f250618296($fileIdentifier, $file)
49
  {
50
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
51
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInita31e0d940a95177a20aa598bfdf190f6
8
  {
9
  public static $files = array (
10
  '7c3f92ec501ce72fe4f09265dc506991' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
@@ -17,7 +17,7 @@ class ComposerStaticInita31e0d940a95177a20aa598bfdf190f6
17
  public static function getInitializer(ClassLoader $loader)
18
  {
19
  return \Closure::bind(function () use ($loader) {
20
- $loader->classMap = ComposerStaticInita31e0d940a95177a20aa598bfdf190f6::$classMap;
21
 
22
  }, null, ClassLoader::class);
23
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit8a7b1839e60b923aa52327f250618296
8
  {
9
  public static $files = array (
10
  '7c3f92ec501ce72fe4f09265dc506991' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
17
  public static function getInitializer(ClassLoader $loader)
18
  {
19
  return \Closure::bind(function () use ($loader) {
20
+ $loader->classMap = ComposerStaticInit8a7b1839e60b923aa52327f250618296::$classMap;
21
 
22
  }, null, ClassLoader::class);
23
  }
vendor/composer/installed.php CHANGED
@@ -1,8 +1,8 @@
1
  <?php return array(
2
  'root' => array(
3
  'name' => 'codeinwp/wp-maintenance-mode',
4
- 'pretty_version' => '2.5.2',
5
- 'version' => '2.5.2.0',
6
  'reference' => NULL,
7
  'type' => 'wordpress-plugin',
8
  'install_path' => __DIR__ . '/../../',
@@ -20,8 +20,8 @@
20
  'dev_requirement' => false,
21
  ),
22
  'codeinwp/wp-maintenance-mode' => array(
23
- 'pretty_version' => '2.5.2',
24
- 'version' => '2.5.2.0',
25
  'reference' => NULL,
26
  'type' => 'wordpress-plugin',
27
  'install_path' => __DIR__ . '/../../',
1
  <?php return array(
2
  'root' => array(
3
  'name' => 'codeinwp/wp-maintenance-mode',
4
+ 'pretty_version' => '2.5.3',
5
+ 'version' => '2.5.3.0',
6
  'reference' => NULL,
7
  'type' => 'wordpress-plugin',
8
  'install_path' => __DIR__ . '/../../',
20
  'dev_requirement' => false,
21
  ),
22
  'codeinwp/wp-maintenance-mode' => array(
23
+ 'pretty_version' => '2.5.3',
24
+ 'version' => '2.5.3.0',
25
  'reference' => NULL,
26
  'type' => 'wordpress-plugin',
27
  'install_path' => __DIR__ . '/../../',
wp-maintenance-mode.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * Plugin Name: WP Maintenance Mode & Coming Soon
6
  * 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.
7
- * Version: 2.5.2
8
  * Author: Themeisle
9
  * Author URI: https://themeisle.com/
10
  * Twitter: themeisle
4
  *
5
  * Plugin Name: WP Maintenance Mode & Coming Soon
6
  * 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.
7
+ * Version: 2.5.3
8
  * Author: Themeisle
9
  * Author URI: https://themeisle.com/
10
  * Twitter: themeisle