underConstruction - Version 1.07

Version Description

  • Fixed a bug where a warning could get emitted causing errors to be printed to the screen
Download this release

Release Info

Developer jkmassel
Plugin Icon 128x128 underConstruction
Version 1.07
Comparing to
See all releases

Code changes from version 1.06 to 1.07

Files changed (2) hide show
  1. readme.txt +4 -1
  2. underConstruction.php +6 -2
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://masseltech.com/donate/
4
  Tags: construction, under construction, private, preview, security, coming soon
5
  Requires at least: 2.7
6
  Tested up to: 3.2.1
7
- Stable tag: 1.06
8
 
9
  Creates a 'Coming Soon' page that will show for all users who are not logged in
10
 
@@ -43,6 +43,9 @@ Sorry, I get a lot of questions. But visit the homepage for this plugin and leav
43
 
44
  == Changelog ==
45
 
 
 
 
46
  = 1.06 =
47
  * Added the ability to allow certain IP addresses to see the site
48
  * Added the ability to have a 301 redirect instead of having the "Coming Soon" page
4
  Tags: construction, under construction, private, preview, security, coming soon
5
  Requires at least: 2.7
6
  Tested up to: 3.2.1
7
+ Stable tag: 1.07
8
 
9
  Creates a 'Coming Soon' page that will show for all users who are not logged in
10
 
43
 
44
  == Changelog ==
45
 
46
+ = 1.07 =
47
+ * Fixed a bug where a warning could get emitted causing errors to be printed to the screen
48
+
49
  = 1.06 =
50
  * Added the ability to allow certain IP addresses to see the site
51
  * Added the ability to have a 301 redirect instead of having the "Coming Soon" page
underConstruction.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Under Construction
4
  Plugin URI: http://www.masseltech.com/
5
  Description: Makes it so your site can only be accessed by users who log in. Useful for developing a site on a live server, without the world being able to see it
6
- Version: 1.06
7
  Author: Jeremy Massel
8
  Author URI: http://www.masseltech.com/
9
  */
@@ -81,7 +81,11 @@ class underConstruction
81
  if (!is_user_logged_in())
82
  {
83
  $array = get_option('underConstructionIPWhitelist');
84
-
 
 
 
 
85
  if(!in_array($_SERVER['REMOTE_ADDR'], $array)){
86
 
87
  //send a 503 if the setting requires it
3
  Plugin Name: Under Construction
4
  Plugin URI: http://www.masseltech.com/
5
  Description: Makes it so your site can only be accessed by users who log in. Useful for developing a site on a live server, without the world being able to see it
6
+ Version: 1.07
7
  Author: Jeremy Massel
8
  Author URI: http://www.masseltech.com/
9
  */
81
  if (!is_user_logged_in())
82
  {
83
  $array = get_option('underConstructionIPWhitelist');
84
+
85
+ if(!is_array($array)){
86
+ $array = array();
87
+ }
88
+
89
  if(!in_array($_SERVER['REMOTE_ADDR'], $array)){
90
 
91
  //send a 503 if the setting requires it