Version Description
- Add capability check for options page. Requires publish_pages
Download this release
Release Info
| Developer | grimmdude |
| Plugin | |
| Version | 1.15 |
| Comparing to | |
| See all releases | |
Code changes from version 1.14 to 1.15
- readme.txt +4 -2
- ucOptions.php +1 -1
- underConstruction.php +1 -1
readme.txt
CHANGED
|
@@ -2,8 +2,8 @@
|
|
| 2 |
Contributors: Jeremy Massel
|
| 3 |
Tags: construction, under construction, private, preview, security, coming soon
|
| 4 |
Requires at least: 2.7
|
| 5 |
-
Tested up to: 4.
|
| 6 |
-
Stable tag: 1.
|
| 7 |
|
| 8 |
Creates a 'Coming Soon' page that will show for all users who are not logged in
|
| 9 |
|
|
@@ -41,6 +41,8 @@ I've had a few people ask me this. If you like it, please go to WordPress.org an
|
|
| 41 |
Sorry, I get a lot of questions. But visit the homepage for this plugin and leave me a comment. They go right to my inbox, and well I might not be able to for a few days, I promise I'll get back to you.
|
| 42 |
|
| 43 |
== Changelog ==
|
|
|
|
|
|
|
| 44 |
|
| 45 |
= 1.14 =
|
| 46 |
* Remove banner from dashboard
|
| 2 |
Contributors: Jeremy Massel
|
| 3 |
Tags: construction, under construction, private, preview, security, coming soon
|
| 4 |
Requires at least: 2.7
|
| 5 |
+
Tested up to: 4.4
|
| 6 |
+
Stable tag: 1.15
|
| 7 |
|
| 8 |
Creates a 'Coming Soon' page that will show for all users who are not logged in
|
| 9 |
|
| 41 |
Sorry, I get a lot of questions. But visit the homepage for this plugin and leave me a comment. They go right to my inbox, and well I might not be able to for a few days, I promise I'll get back to you.
|
| 42 |
|
| 43 |
== Changelog ==
|
| 44 |
+
= 1.15 =
|
| 45 |
+
* Add capability check for options page. Requires publish_pages
|
| 46 |
|
| 47 |
= 1.14 =
|
| 48 |
* Remove banner from dashboard
|
ucOptions.php
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
|
| 3 |
if($_SERVER['REQUEST_METHOD'] == "POST"){
|
| 4 |
-
if(!wp_verify_nonce($_POST['save_options_field'], 'save_options')){
|
| 5 |
die("Sorry, but this request is invalid");
|
| 6 |
}
|
| 7 |
}
|
| 1 |
<?php
|
| 2 |
|
| 3 |
if($_SERVER['REQUEST_METHOD'] == "POST"){
|
| 4 |
+
if(!wp_verify_nonce($_POST['save_options_field'], 'save_options') || ! current_user_can('publish_pages')){
|
| 5 |
die("Sorry, but this request is invalid");
|
| 6 |
}
|
| 7 |
}
|
underConstruction.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
Plugin Name: Under Construction
|
| 4 |
Plugin URI: https://wordpress.org/plugins/underconstruction/
|
| 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: Noah Kagan
|
| 8 |
Author URI: http://SumoMe.com/
|
| 9 |
*/
|
| 3 |
Plugin Name: Under Construction
|
| 4 |
Plugin URI: https://wordpress.org/plugins/underconstruction/
|
| 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.15
|
| 7 |
Author: Noah Kagan
|
| 8 |
Author URI: http://SumoMe.com/
|
| 9 |
*/
|
