Version Description
- Robots.txt is now always accessible.
- Added support for Uber Login Logo plugin.
Download this release
Release Info
| Developer | husobj |
| Plugin | |
| Version | 1.6 |
| Comparing to | |
| See all releases | |
Code changes from version 1.5 to 1.6
- password-protected.php +6 -1
- readme.txt +11 -3
- theme/login.php +11 -3
password-protected.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
Plugin Name: Password Protected
|
| 5 |
Plugin URI: http://wordpress.org/extend/plugins/password-protected/
|
| 6 |
Description: A very simple way to quickly password protect your WordPress site with a single password. Integrates seamlessly into your WordPress privacy settings.
|
| 7 |
-
Version: 1.
|
| 8 |
Author: Ben Huson
|
| 9 |
Author URI: http://www.benhuson.co.uk/
|
| 10 |
License: GPLv2
|
|
@@ -74,6 +74,11 @@ class Password_Protected {
|
|
| 74 |
* Is Active?
|
| 75 |
*/
|
| 76 |
function is_active() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
if ( (bool) get_option( 'password_protected_status' ) ) {
|
| 78 |
if ( ! defined( 'DONOTCACHEPAGE' ) )
|
| 79 |
define( 'DONOTCACHEPAGE', true );
|
| 4 |
Plugin Name: Password Protected
|
| 5 |
Plugin URI: http://wordpress.org/extend/plugins/password-protected/
|
| 6 |
Description: A very simple way to quickly password protect your WordPress site with a single password. Integrates seamlessly into your WordPress privacy settings.
|
| 7 |
+
Version: 1.6
|
| 8 |
Author: Ben Huson
|
| 9 |
Author URI: http://www.benhuson.co.uk/
|
| 10 |
License: GPLv2
|
| 74 |
* Is Active?
|
| 75 |
*/
|
| 76 |
function is_active() {
|
| 77 |
+
|
| 78 |
+
// Always allow access to robots.txt
|
| 79 |
+
if ( is_robots() )
|
| 80 |
+
return false;
|
| 81 |
+
|
| 82 |
if ( (bool) get_option( 'password_protected_status' ) ) {
|
| 83 |
if ( ! defined( 'DONOTCACHEPAGE' ) )
|
| 84 |
define( 'DONOTCACHEPAGE', true );
|
readme.txt
CHANGED
|
@@ -3,8 +3,8 @@ Contributors: husobj
|
|
| 3 |
Donate link: http://www.benhuson.co.uk/donate/
|
| 4 |
Tags: password, protect, password protect, login
|
| 5 |
Requires at least: 3.1
|
| 6 |
-
Tested up to: 3.5.
|
| 7 |
-
Stable tag: 1.
|
| 8 |
License: GPLv2 or later
|
| 9 |
|
| 10 |
A very simple way to quickly password protect your WordPress site with a single password.
|
|
@@ -21,6 +21,7 @@ Features include:
|
|
| 21 |
* Option to allow access to feeds.
|
| 22 |
* Option to allow administrators access without entering password.
|
| 23 |
* Works with Mark Jaquith's [Login Logo](http://wordpress.org/extend/plugins/login-logo/) plugin.
|
|
|
|
| 24 |
|
| 25 |
> Please note, this plugin does not currently work with WP Engine hosting due to their page caching implementation.
|
| 26 |
|
|
@@ -39,7 +40,7 @@ If you are upgrading manually via FTP rather that through the WordPress automati
|
|
| 39 |
== Frequently Asked Questions ==
|
| 40 |
|
| 41 |
= How can I change the Wordpress logo to a different image? =
|
| 42 |
-
Install and configure the [Login Logo](http://wordpress.org/extend/plugins/login-logo/) plugin by Mark Jaquith. This will change the logo on your password entry page AND also your admin login page.
|
| 43 |
|
| 44 |
= How can I enable feeds while the site is password protected? =
|
| 45 |
In the settings, check the 'Allow Feeds' checkbox.
|
|
@@ -68,6 +69,10 @@ If you can, please [fork the code](https://github.com/benhuson/password-protecte
|
|
| 68 |
|
| 69 |
== Changelog ==
|
| 70 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
= 1.5 =
|
| 72 |
* Requires WordPress 3.1+
|
| 73 |
* Settings now have their own page.
|
|
@@ -108,6 +113,9 @@ If you can, please [fork the code](https://github.com/benhuson/password-protecte
|
|
| 108 |
|
| 109 |
== Upgrade Notice ==
|
| 110 |
|
|
|
|
|
|
|
|
|
|
| 111 |
= 1.5 =
|
| 112 |
Fixes an open redirect vulnerability. Settings now have own page.
|
| 113 |
|
| 3 |
Donate link: http://www.benhuson.co.uk/donate/
|
| 4 |
Tags: password, protect, password protect, login
|
| 5 |
Requires at least: 3.1
|
| 6 |
+
Tested up to: 3.5.2
|
| 7 |
+
Stable tag: 1.6
|
| 8 |
License: GPLv2 or later
|
| 9 |
|
| 10 |
A very simple way to quickly password protect your WordPress site with a single password.
|
| 21 |
* Option to allow access to feeds.
|
| 22 |
* Option to allow administrators access without entering password.
|
| 23 |
* Works with Mark Jaquith's [Login Logo](http://wordpress.org/extend/plugins/login-logo/) plugin.
|
| 24 |
+
* Works with the [Uber Login Logo](http://wordpress.org/plugins/uber-login-logo/) plugin.
|
| 25 |
|
| 26 |
> Please note, this plugin does not currently work with WP Engine hosting due to their page caching implementation.
|
| 27 |
|
| 40 |
== Frequently Asked Questions ==
|
| 41 |
|
| 42 |
= How can I change the Wordpress logo to a different image? =
|
| 43 |
+
Install and configure the [Login Logo](http://wordpress.org/extend/plugins/login-logo/) plugin by Mark Jaquith or the [Uber Login Logo](http://wordpress.org/plugins/uber-login-logo/) plugin. This will change the logo on your password entry page AND also your admin login page.
|
| 44 |
|
| 45 |
= How can I enable feeds while the site is password protected? =
|
| 46 |
In the settings, check the 'Allow Feeds' checkbox.
|
| 69 |
|
| 70 |
== Changelog ==
|
| 71 |
|
| 72 |
+
= 1.6 =
|
| 73 |
+
* Robots.txt is now always accessible.
|
| 74 |
+
* Added support for Uber Login Logo plugin.
|
| 75 |
+
|
| 76 |
= 1.5 =
|
| 77 |
* Requires WordPress 3.1+
|
| 78 |
* Settings now have their own page.
|
| 113 |
|
| 114 |
== Upgrade Notice ==
|
| 115 |
|
| 116 |
+
= 1.6 =
|
| 117 |
+
Added support for Uber Login Logo plugin.
|
| 118 |
+
|
| 119 |
= 1.5 =
|
| 120 |
Fixes an open redirect vulnerability. Settings now have own page.
|
| 121 |
|
theme/login.php
CHANGED
|
@@ -44,10 +44,18 @@ $shake_error_codes = array( 'empty_password', 'incorrect_password' );
|
|
| 44 |
if ( $Password_Protected->errors->get_error_code() && in_array( $Password_Protected->errors->get_error_code(), $shake_error_codes ) )
|
| 45 |
add_action( 'password_protected_login_head', 'wp_shake_js', 12 );
|
| 46 |
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
|
|
|
|
|
|
|
|
|
| 50 |
add_action( 'password_protected_login_head', array( new CWS_Login_Logo_Plugin, 'login_head' ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
?>
|
| 53 |
<!DOCTYPE html>
|
| 44 |
if ( $Password_Protected->errors->get_error_code() && in_array( $Password_Protected->errors->get_error_code(), $shake_error_codes ) )
|
| 45 |
add_action( 'password_protected_login_head', 'wp_shake_js', 12 );
|
| 46 |
|
| 47 |
+
/**
|
| 48 |
+
* Support 3rd party plugins
|
| 49 |
+
*/
|
| 50 |
+
if ( class_exists( 'CWS_Login_Logo_Plugin' ) ) {
|
| 51 |
+
// Add support for Mark Jaquith's Login Logo plugin
|
| 52 |
+
// http://wordpress.org/extend/plugins/login-logo/
|
| 53 |
add_action( 'password_protected_login_head', array( new CWS_Login_Logo_Plugin, 'login_head' ) );
|
| 54 |
+
} elseif ( class_exists( 'UberLoginLogo' ) ) {
|
| 55 |
+
// Add support for Uber Login Logo plugin
|
| 56 |
+
// http://wordpress.org/plugins/uber-login-logo/
|
| 57 |
+
add_action( 'password_protected_login_head', array( 'UberLoginLogo', 'replaceLoginLogo' ) );
|
| 58 |
+
}
|
| 59 |
|
| 60 |
?>
|
| 61 |
<!DOCTYPE html>
|
