Version Description
- Fixes a bug where users couldn't log in
Download this release
Release Info
Developer | jkmassel |
Plugin | underConstruction |
Version | 1.11 |
Comparing to | |
See all releases |
Code changes from version 1.10 to 1.11
- ajax-loader.gif +0 -0
- defaultMessage.php +0 -0
- readme.txt +4 -1
- ucOptions.php +0 -0
- underConstruction.php +7 -3
- underconstruction.dev.js +0 -0
- underconstruction.min.js +0 -0
ajax-loader.gif
CHANGED
File without changes
|
defaultMessage.php
CHANGED
File without changes
|
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.5.1
|
7 |
-
Stable tag: 1.
|
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.10 =
|
47 |
* Fixes a bug where users who aren't admins wouldn't be able to use the admin area of the site if the under construction plugin was enabled
|
48 |
* Adds French translation (my thanks to David Thomas at studio de création sympathique)
|
4 |
Tags: construction, under construction, private, preview, security, coming soon
|
5 |
Requires at least: 2.7
|
6 |
Tested up to: 3.5.1
|
7 |
+
Stable tag: 1.11
|
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.11 =
|
47 |
+
* Fixes a bug where users couldn't log in
|
48 |
+
|
49 |
= 1.10 =
|
50 |
* Fixes a bug where users who aren't admins wouldn't be able to use the admin area of the site if the under construction plugin was enabled
|
51 |
* Adds French translation (my thanks to David Thomas at studio de création sympathique)
|
ucOptions.php
CHANGED
File without changes
|
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.
|
7 |
Author: Jeremy Massel
|
8 |
Author URI: http://www.masseltech.com/
|
9 |
*/
|
@@ -131,8 +131,12 @@ class underConstruction
|
|
131 |
return;
|
132 |
}
|
133 |
|
134 |
-
if(get_option('underConstructionRequiredRole')){
|
135 |
-
|
|
|
|
|
|
|
|
|
136 |
|
137 |
$required_role = $editable_roles[get_option('underConstructionRequiredRole')];
|
138 |
|
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.11
|
7 |
Author: Jeremy Massel
|
8 |
Author URI: http://www.masseltech.com/
|
9 |
*/
|
131 |
return;
|
132 |
}
|
133 |
|
134 |
+
if(get_option('underConstructionRequiredRole') && is_user_logged_in()){
|
135 |
+
|
136 |
+
global $wp_roles;
|
137 |
+
$all_roles = $wp_roles->roles;
|
138 |
+
|
139 |
+
$editable_roles = apply_filters('editable_roles', $all_roles);
|
140 |
|
141 |
$required_role = $editable_roles[get_option('underConstructionRequiredRole')];
|
142 |
|
underconstruction.dev.js
CHANGED
File without changes
|
underconstruction.min.js
CHANGED
File without changes
|