underConstruction - Version 1.02

Version Description

  • Fixed a bug where clearing the text wouldn't cause it to revert to the default.
Download this release

Release Info

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

Code changes from version 1.01 to 1.02

Files changed (2) hide show
  1. readme.txt +6 -14
  2. underConstruction.php +4 -2
readme.txt CHANGED
@@ -1,24 +1,20 @@
1
  === underConstruction ===
2
  Contributors: Jeremy Massel
3
  Donate link: http://truthmedia.com/engage/giving
4
- Tags: construction, under construction, private, preview, security
5
  Requires at least: 2.7
6
  Tested up to: 2.8
7
- Stable tag: 1.01
8
 
9
- 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
10
 
11
  == Description ==
12
 
13
- 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
14
 
15
 
16
  == Installation ==
17
 
18
- This section describes how to install the plugin and get it working.
19
-
20
- e.g.
21
-
22
  1. Upload the folder to the `/wp-content/plugins/` directory
23
  2. Activate the plugin through the 'Plugins' menu in WordPress
24
  3. If you want to change the look of the page that is displayed, click Settings->Under Construction and enter the HTML for the page you want to show up.
@@ -29,14 +25,10 @@ e.g.
29
 
30
  You enter the contents of the entire HTML file. You can include inline styles, or links to external style sheets and external images.
31
 
32
- = I have a question you didn't answer! =
33
- Post a message on the [underConstruction page](http://masseltech.com/plugins/underConstruction/ "underConstruction page") and leave a message in the comments if you have a question that needs answering!
34
-
35
- == Screenshots ==
36
-
37
-
38
  == Changelog ==
39
 
 
 
40
  = 1.01 =
41
  * Fixed a bug where deactivation would trigger an error
42
  = 1.0 =
1
  === underConstruction ===
2
  Contributors: Jeremy Massel
3
  Donate link: http://truthmedia.com/engage/giving
4
+ Tags: construction, under construction, private, preview, security, coming soon
5
  Requires at least: 2.7
6
  Tested up to: 2.8
7
+ Stable tag: 1.02
8
 
9
+ Creates a 'Coming Soon' page that will show for all users who are not logged in. Useful for developing a site on a live server, without the world being able to see it
10
 
11
  == Description ==
12
 
13
+ Creates a 'Coming Soon' page that will show for all users who are not logged in. Useful for developing a site on a live server, without the world being able to see it
14
 
15
 
16
  == Installation ==
17
 
 
 
 
 
18
  1. Upload the folder to the `/wp-content/plugins/` directory
19
  2. Activate the plugin through the 'Plugins' menu in WordPress
20
  3. If you want to change the look of the page that is displayed, click Settings->Under Construction and enter the HTML for the page you want to show up.
25
 
26
  You enter the contents of the entire HTML file. You can include inline styles, or links to external style sheets and external images.
27
 
 
 
 
 
 
 
28
  == Changelog ==
29
 
30
+ = 1.02 =
31
+ * Fixed a bug where clearing the text wouldn't cause it to revert to the default.
32
  = 1.01 =
33
  * Fixed a bug where deactivation would trigger an error
34
  = 1.0 =
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.01
7
  Author: Jeremy Massel
8
  Author URI: http://www.masseltech.com/
9
  */
@@ -56,11 +56,13 @@ function uc_adminMenu()
56
 
57
  function uc_changeMessage()
58
  {
59
-
60
  if(isset($_POST['ucHTML'])){
61
  if(trim($_POST['ucHTML'])){
62
  update_option('underConstructionHTML', attribute_escape($_POST['ucHTML']));
63
  }
 
 
 
64
  }
65
 
66
  ?>
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.02
7
  Author: Jeremy Massel
8
  Author URI: http://www.masseltech.com/
9
  */
56
 
57
  function uc_changeMessage()
58
  {
 
59
  if(isset($_POST['ucHTML'])){
60
  if(trim($_POST['ucHTML'])){
61
  update_option('underConstructionHTML', attribute_escape($_POST['ucHTML']));
62
  }
63
+ else{
64
+ uc_remove();
65
+ }
66
  }
67
 
68
  ?>