Skip to content

Commit

Permalink
Version 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
benhuson committed Oct 1, 2012
1 parent 39017c9 commit 71b1af9
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 4 deletions.
8 changes: 6 additions & 2 deletions password-protected.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plugin Name: Password Protected
Plugin URI: http://www.benhuson.co.uk/
Description: A very simple way to quickly password protect your WordPress site with a single password. Integrates seamlessly into your WordPress privacy settings.
Version: 1.2.2
Version: 1.3
Author: Ben Huson
Author URI: http://www.benhuson.co.uk/
License: GPLv2
Expand All @@ -27,6 +27,10 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/

/**
* @todo Use wp_hash_password() ?
*/

define( 'PASSWORD_PROTECTED_SUBDIR', '/' . str_replace( basename( __FILE__ ), '', plugin_basename( __FILE__ ) ) );
define( 'PASSWORD_PROTECTED_URL', plugins_url( PASSWORD_PROTECTED_SUBDIR ) );
define( 'PASSWORD_PROTECTED_DIR', plugin_dir_path( __FILE__ ) );
Expand All @@ -36,7 +40,7 @@

class Password_Protected {

var $version = '1.2';
var $version = '1.3';
var $admin = null;
var $errors = null;

Expand Down
29 changes: 27 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ Contributors: husobj
Donate link: http://www.benhuson.co.uk/donate/
Tags: password, protect, password protect, login
Requires at least: 3.0
Tested up to: 3.3.1
Stable tag: 1.2.2
Tested up to: 3.4.2
Stable tag: 1.3
License: GPLv2 or later

A very simple way to quickly password protect your WordPress site with a single password. Integrates seamlessly into your WordPress privacy settings.

Expand Down Expand Up @@ -36,6 +37,10 @@ If you are upgrading manually via FTP rather that through the WordPress automati

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.

= How can I enable feeds while the site is password protected? =

In the settings, check the 'Allow Feeds' checkbox.

= How can I log out? =

Just add a "password-protected=logout" query to your URL.
Expand All @@ -57,6 +62,15 @@ If you can, please [fork the code](https://github.com/benhuson/password-protecte

== Changelog ==

= 1.3 =

* Added checkbox to allow access to feeds when protection is enabled.
* Prepare for WordPress 3.5 Settings API changes.
* Added 'password_protected_before_login_form' and 'password_protected_after_login_form' actions.
* Added 'password_protected_process_login' filter to make it possible to extend login functionality.
* Now possible to use 'pre_update_option_password_protected_password' filter to use password before it is encrypted and saved.
* Ready for [translations](http://codex.wordpress.org/I18n_for_WordPress_Developers).

= 1.2.2 =

* Escape 'redirect_to' attribute. Props A. Alagha.
Expand All @@ -78,3 +92,14 @@ If you can, please [fork the code](https://github.com/benhuson/password-protecte
= 1.0 =

* First Release. If you spot any bugs or issues please [log them here](https://github.com/benhuson/password-protected/issues).

== Upgrade Notice ==

= 1.3 =
Allow access to feeds. Ready for translation.

= 1.2 =
Use cookies instead of sessions.

= 1.1 =
Passwords saved encrypted.

0 comments on commit 71b1af9

Please sign in to comment.