Password Protected - Version 1.2.1

Version Description

  • Only disable feeds when protection is active.
  • Added a "How to log out?" FAQ.
Download this release

Release Info

Developer husobj
Plugin Icon 128x128 Password Protected
Version 1.2.1
Comparing to
See all releases

Code changes from version 1.2 to 1.2.1

Files changed (2) hide show
  1. password-protected.php +8 -6
  2. readme.txt +12 -2
password-protected.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Password Protected
5
  Plugin URI: http://www.benhuson.co.uk/
6
  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.2
8
  Author: Ben Huson
9
  Author URI: http://www.benhuson.co.uk/
10
  License: GPLv2
@@ -67,11 +67,13 @@ class Password_Protected {
67
  * @todo An option/filter to prevent disabling of feeds.
68
  */
69
  function disable_feeds() {
70
- add_action( 'do_feed', array( $this, 'disable_feed' ), 1 );
71
- add_action( 'do_feed_rdf', array( $this, 'disable_feed' ), 1 );
72
- add_action( 'do_feed_rss', array( $this, 'disable_feed' ), 1 );
73
- add_action( 'do_feed_rss2', array( $this, 'disable_feed' ), 1 );
74
- add_action( 'do_feed_atom', array( $this, 'disable_feed' ), 1 );
 
 
75
  }
76
 
77
  /**
4
  Plugin Name: Password Protected
5
  Plugin URI: http://www.benhuson.co.uk/
6
  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.2.1
8
  Author: Ben Huson
9
  Author URI: http://www.benhuson.co.uk/
10
  License: GPLv2
67
  * @todo An option/filter to prevent disabling of feeds.
68
  */
69
  function disable_feeds() {
70
+ if ( $this->is_active() ) {
71
+ add_action( 'do_feed', array( $this, 'disable_feed' ), 1 );
72
+ add_action( 'do_feed_rdf', array( $this, 'disable_feed' ), 1 );
73
+ add_action( 'do_feed_rss', array( $this, 'disable_feed' ), 1 );
74
+ add_action( 'do_feed_rss2', array( $this, 'disable_feed' ), 1 );
75
+ add_action( 'do_feed_atom', array( $this, 'disable_feed' ), 1 );
76
+ }
77
  }
78
 
79
  /**
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.benhuson.co.uk/donate/
4
  Tags: password, protect, password protect, login
5
  Requires at least: 3.0
6
  Tested up to: 3.3.1
7
- Stable tag: 1.2
8
 
9
  A very simple way to quickly password protect your WordPress site with a single password. Integrates seamlessly into your WordPress privacy settings.
10
 
@@ -36,6 +36,11 @@ If you are upgrading manually via FTP rather that through the WordPress automati
36
 
37
  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.
38
 
 
 
 
 
 
39
  = Where can I report bugs and issues? =
40
 
41
  Please log issues and bugs on the plugin's [GitHub page](https://github.com/benhuson/password-protected/issues).
@@ -52,6 +57,11 @@ If you can, please [fork the code](https://github.com/benhuson/password-protecte
52
 
53
  == Changelog ==
54
 
 
 
 
 
 
55
  = 1.2 =
56
 
57
  * Use cookies instead of sessions.
@@ -62,4 +72,4 @@ If you can, please [fork the code](https://github.com/benhuson/password-protecte
62
 
63
  = 1.0 =
64
 
65
- * First Release. If you spot any bugs or issues please [log them here](https://github.com/benhuson/password-protected/issues).
4
  Tags: password, protect, password protect, login
5
  Requires at least: 3.0
6
  Tested up to: 3.3.1
7
+ Stable tag: 1.2.1
8
 
9
  A very simple way to quickly password protect your WordPress site with a single password. Integrates seamlessly into your WordPress privacy settings.
10
 
36
 
37
  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.
38
 
39
+ = How can I log out? =
40
+
41
+ Just add a "password-protected=logout" query to your URL.
42
+ eg. http://www.example.com/?password-protected=logout
43
+
44
  = Where can I report bugs and issues? =
45
 
46
  Please log issues and bugs on the plugin's [GitHub page](https://github.com/benhuson/password-protected/issues).
57
 
58
  == Changelog ==
59
 
60
+ = 1.2.1 =
61
+
62
+ * Only disable feeds when protection is active.
63
+ * Added a "How to log out?" FAQ.
64
+
65
  = 1.2 =
66
 
67
  * Use cookies instead of sessions.
72
 
73
  = 1.0 =
74
 
75
+ * First Release. If you spot any bugs or issues please [log them here](https://github.com/benhuson/password-protected/issues).