EZP Maintenance Mode - Version 0.5.1

Version Description

  • Fix for PHP 5.2.x
Download this release

Release Info

Developer bobriley
Plugin Icon 128x128 EZP Maintenance Mode
Version 0.5.1
Comparing to
See all releases

Code changes from version 0.5 to 0.5.1

classes/class-easy-pie-maintenance-mode.php CHANGED
@@ -344,12 +344,16 @@ if (!class_exists('Easy_Pie_Maintenance_Mode')) {
344
 
345
  private function get_template_path($page_template_key) {
346
 
347
- return __DIR__ . "/../mini-themes/" . $page_template_key;
 
 
348
  }
349
 
350
  public function render_active_theme_selector($args) {
351
 
352
- $path = __DIR__ . "/../mini-themes/";
 
 
353
 
354
  $dirs = glob($path . "*", GLOB_ONLYDIR);
355
 
@@ -456,13 +460,17 @@ if (!class_exists('Easy_Pie_Maintenance_Mode')) {
456
 
457
  function display_options_page() {
458
 
459
- include(__DIR__ . '/../pages/page-options.php');
 
 
460
  }
461
 
462
  private function get_manifests() {
463
 
 
 
464
  $manifest_array = array();
465
- $path = __DIR__ . "/../mini-themes/";
466
  $dirs = glob($path . "*", GLOB_ONLYDIR);
467
 
468
  sort($dirs);
344
 
345
  private function get_template_path($page_template_key) {
346
 
347
+ $__dir__ = dirname(__FILE__);
348
+
349
+ return $__dir__ . "/../mini-themes/" . $page_template_key;
350
  }
351
 
352
  public function render_active_theme_selector($args) {
353
 
354
+ $__dir__ = dirname(__FILE__);
355
+
356
+ $path = $__dir__ . "/../mini-themes/";
357
 
358
  $dirs = glob($path . "*", GLOB_ONLYDIR);
359
 
460
 
461
  function display_options_page() {
462
 
463
+ $__dir__ = dirname(__FILE__);
464
+
465
+ include($__dir__ . '/../pages/page-options.php');
466
  }
467
 
468
  private function get_manifests() {
469
 
470
+ $__dir__ = dirname(__FILE__);
471
+
472
  $manifest_array = array();
473
+ $path = $__dir__ . "/../mini-themes/";
474
  $dirs = glob($path . "*", GLOB_ONLYDIR);
475
 
476
  sort($dirs);
easy-pie-maintenance-mode.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Easy Pie Maintenance Mode
4
  Plugin URI: http://easypiewp.com/easy-pie-maintenance-mode-plugin/
5
  Description: Lets people know that your site is temporarily down.
6
- Version: 0.5
7
  Author: Bob Riley
8
  Author URI: http://www.easypiewp.com
9
  Text Domain: easy-pie-maintenance-mode
3
  Plugin Name: Easy Pie Maintenance Mode
4
  Plugin URI: http://easypiewp.com/easy-pie-maintenance-mode-plugin/
5
  Description: Lets people know that your site is temporarily down.
6
+ Version: 0.5.1
7
  Author: Bob Riley
8
  Author URI: http://www.easypiewp.com
9
  Text Domain: easy-pie-maintenance-mode
readme.txt CHANGED
@@ -35,18 +35,11 @@ Thanks to the developers of [bxSlider](http://bxslider.com) for their cool image
35
 
36
  == Frequently Asked Questions ==
37
 
38
- = Why doesn't the plugin work for me? =
39
- Unfortunately I recently discovered that the plugin isn't compatible with PHP 5.2. To verify this is the problem go to your [host's CPanel interface](http://www.inmotionhosting.com/support/edu/cpanel/getting-started-cpanel/how-to-view-your-php-version-in-cpanel) to check your PHP version.
40
-
41
- If you have PHP 5.2.x, then you will have to wait until the next release for the fix. However, if you are running PHP 5.3 or later, that means something else is wrong. If you are interested in working through the problem please [email me](mailto:bob@easypiewp.com). Thanks.
42
-
43
  = What happens if a search engine hits my site while it's in maintenance mode? =
44
  The plugin returns a '503' status with 'retry later' HTTP header when in maintenance mode. This lets search engines know that your site is temporarily down and to come back 24 hours later.
45
 
46
  = Can I create my own mini-theme? =
47
- In version 0.5, there are ways of doing it, but it's not easy for a beginner. I recommend waiting till the next release.
48
-
49
- If by chance, you have manage to hack a theme, please be aware that since the themes for v0.5 reside in the plugins directory that all themes will be wiped and reinstalled during the next upgrade. Therefore make sure you create a backup of your hacked theme before performing the next upgrade. The next version will not have this problem - user mini-themes are fully supported and will be retained between updates.
50
 
51
  == Screenshots ==
52
 
@@ -55,10 +48,16 @@ If by chance, you have manage to hack a theme, please be aware that since the th
55
 
56
  == Changelog ==
57
 
 
 
 
58
  = 0.5 =
59
  * Initial release
60
 
61
  == Upgrade Notice ==
62
 
 
 
 
63
  = 0.5 =
64
  * Initial release
35
 
36
  == Frequently Asked Questions ==
37
 
 
 
 
 
 
38
  = What happens if a search engine hits my site while it's in maintenance mode? =
39
  The plugin returns a '503' status with 'retry later' HTTP header when in maintenance mode. This lets search engines know that your site is temporarily down and to come back 24 hours later.
40
 
41
  = Can I create my own mini-theme? =
42
+ In version 0.5, there are ways of doing it, but it's not easy for a beginner. I recommend waiting till the next release. If by chance, you have managed to hack a theme, please be aware that since the themes for v0.5 reside in the plugins directory that all themes will be wiped and reinstalled during the next upgrade so make sure you create a backup of your hacked theme before performing the next upgrade. The next version will not have this problem - user themes will be retained between updates.
 
 
43
 
44
  == Screenshots ==
45
 
48
 
49
  == Changelog ==
50
 
51
+ = 0.5.1 =
52
+ * Fix for PHP 5.2.x
53
+
54
  = 0.5 =
55
  * Initial release
56
 
57
  == Upgrade Notice ==
58
 
59
+ = 0.5.1 =
60
+ * Small fix for PHP 5.2.x. If you aren't running PHP 5.2.x you don't need this although it won't hurt anything if you update anyway.
61
+
62
  = 0.5 =
63
  * Initial release
screenshot-1.png DELETED
Binary file
screenshot-2.png DELETED
Binary file