Version Description
- Fixed PHP error when calculating cookie expiration date.
Download this release
Release Info
| Developer | husobj |
| Plugin | |
| Version | 2.2.1 |
| Comparing to | |
| See all releases | |
Code changes from version 2.2 to 2.2.1
- CHANGELOG.md +7 -1
- README.md +3 -0
- password-protected.php +3 -3
- readme.txt +4 -1
CHANGELOG.md
CHANGED
|
@@ -4,6 +4,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
| 4 |
|
| 5 |
## [Unreleased]
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
## [2.2] - 2018-05-25
|
| 8 |
|
| 9 |
### Added
|
|
@@ -186,7 +191,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
| 186 |
### Added
|
| 187 |
- First Release. If you spot any bugs or issues please [log them here](https://github.com/benhuson/password-protected/issues).
|
| 188 |
|
| 189 |
-
[Unreleased]: https://github.com/benhuson/password-protected/compare/2.2...HEAD
|
|
|
|
| 190 |
[2.2]: https://github.com/benhuson/password-protected/compare/2.1...2.2
|
| 191 |
[2.1]: https://github.com/benhuson/password-protected/compare/2.0.3...2.1
|
| 192 |
[2.0.3]: https://github.com/benhuson/password-protected/compare/2.0.2...2.0.3
|
| 4 |
|
| 5 |
## [Unreleased]
|
| 6 |
|
| 7 |
+
## [2.2.1] - 2018-05-27
|
| 8 |
+
|
| 9 |
+
### Fixed
|
| 10 |
+
- Fixed PHP error when calculating cookie expiration date.
|
| 11 |
+
|
| 12 |
## [2.2] - 2018-05-25
|
| 13 |
|
| 14 |
### Added
|
| 191 |
### Added
|
| 192 |
- First Release. If you spot any bugs or issues please [log them here](https://github.com/benhuson/password-protected/issues).
|
| 193 |
|
| 194 |
+
[Unreleased]: https://github.com/benhuson/password-protected/compare/2.2.1...HEAD
|
| 195 |
+
[2.2.1]: https://github.com/benhuson/password-protected/compare/2.2...2.2.1
|
| 196 |
[2.2]: https://github.com/benhuson/password-protected/compare/2.1...2.2
|
| 197 |
[2.1]: https://github.com/benhuson/password-protected/compare/2.0.3...2.1
|
| 198 |
[2.0.3]: https://github.com/benhuson/password-protected/compare/2.0.2...2.0.3
|
README.md
CHANGED
|
@@ -71,6 +71,9 @@ More instructions can be found at [wp-translations.org](http://wp-translations.o
|
|
| 71 |
Upgrade Notice
|
| 72 |
--------------
|
| 73 |
|
|
|
|
|
|
|
|
|
|
| 74 |
### 2.2
|
| 75 |
Added admin bar icon to indicate wether password protection is enabled/disabled. Options to enable REST API access and show "Remember me" checkbox.
|
| 76 |
|
| 71 |
Upgrade Notice
|
| 72 |
--------------
|
| 73 |
|
| 74 |
+
### 2.2.1
|
| 75 |
+
Fixed PHP error when calculating cookie expiration date.
|
| 76 |
+
|
| 77 |
### 2.2
|
| 78 |
Added admin bar icon to indicate wether password protection is enabled/disabled. Options to enable REST API access and show "Remember me" checkbox.
|
| 79 |
|
password-protected.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
Plugin Name: Password Protected
|
| 5 |
Plugin URI: https://wordpress.org/plugins/password-protected/
|
| 6 |
Description: A very simple way to quickly password protect your WordPress site with a single password. Please note: This plugin does not restrict access to uploaded files and images and does not work with some caching setups.
|
| 7 |
-
Version: 2.2
|
| 8 |
Author: Ben Huson
|
| 9 |
Text Domain: password-protected
|
| 10 |
Author URI: http://github.com/benhuson/password-protected/
|
|
@@ -42,7 +42,7 @@ $Password_Protected = new Password_Protected();
|
|
| 42 |
|
| 43 |
class Password_Protected {
|
| 44 |
|
| 45 |
-
var $version = '2.2';
|
| 46 |
var $admin = null;
|
| 47 |
var $errors = null;
|
| 48 |
|
|
@@ -605,7 +605,7 @@ class Password_Protected {
|
|
| 605 |
$expiration_time = apply_filters( 'password_protected_auth_cookie_expiration', get_option( 'password_protected_remember_me_lifetime', 14 ) * DAY_IN_SECONDS, $remember );
|
| 606 |
$expiration = $expire = current_time( 'timestamp' ) + $expiration_time;
|
| 607 |
} else {
|
| 608 |
-
$expiration_time
|
| 609 |
$expiration = current_time( 'timestamp' ) + $expiration_time;
|
| 610 |
$expire = 0;
|
| 611 |
}
|
| 4 |
Plugin Name: Password Protected
|
| 5 |
Plugin URI: https://wordpress.org/plugins/password-protected/
|
| 6 |
Description: A very simple way to quickly password protect your WordPress site with a single password. Please note: This plugin does not restrict access to uploaded files and images and does not work with some caching setups.
|
| 7 |
+
Version: 2.2.1
|
| 8 |
Author: Ben Huson
|
| 9 |
Text Domain: password-protected
|
| 10 |
Author URI: http://github.com/benhuson/password-protected/
|
| 42 |
|
| 43 |
class Password_Protected {
|
| 44 |
|
| 45 |
+
var $version = '2.2.1';
|
| 46 |
var $admin = null;
|
| 47 |
var $errors = null;
|
| 48 |
|
| 605 |
$expiration_time = apply_filters( 'password_protected_auth_cookie_expiration', get_option( 'password_protected_remember_me_lifetime', 14 ) * DAY_IN_SECONDS, $remember );
|
| 606 |
$expiration = $expire = current_time( 'timestamp' ) + $expiration_time;
|
| 607 |
} else {
|
| 608 |
+
$expiration_time = apply_filters( 'password_protected_auth_cookie_expiration', DAY_IN_SECONDS * 20, $remember );
|
| 609 |
$expiration = current_time( 'timestamp' ) + $expiration_time;
|
| 610 |
$expire = 0;
|
| 611 |
}
|
readme.txt
CHANGED
|
@@ -5,7 +5,7 @@ Tags: password, protect, password protect, login
|
|
| 5 |
Requires at least: 3.9
|
| 6 |
Tested up to: 4.9.6
|
| 7 |
Requires PHP: 5.6
|
| 8 |
-
Stable tag: 2.2
|
| 9 |
License: GPLv2 or later
|
| 10 |
|
| 11 |
A very simple way to quickly password protect your WordPress site with a single password.
|
|
@@ -82,6 +82,9 @@ More instructions can be found at [wp-translations.org](http://wp-translations.o
|
|
| 82 |
|
| 83 |
== Changelog ==
|
| 84 |
|
|
|
|
|
|
|
|
|
|
| 85 |
= 2.2 =
|
| 86 |
* Added admin bar icon to indicate wether password protection is enabled/disabled.
|
| 87 |
* Option to show "Remember me" checkbox. Props [Christian Güdel](https://github.com/cguedel).
|
| 5 |
Requires at least: 3.9
|
| 6 |
Tested up to: 4.9.6
|
| 7 |
Requires PHP: 5.6
|
| 8 |
+
Stable tag: 2.2.1
|
| 9 |
License: GPLv2 or later
|
| 10 |
|
| 11 |
A very simple way to quickly password protect your WordPress site with a single password.
|
| 82 |
|
| 83 |
== Changelog ==
|
| 84 |
|
| 85 |
+
= 2.2.1 =
|
| 86 |
+
* Fixed PHP error when calculating cookie expiration date.
|
| 87 |
+
|
| 88 |
= 2.2 =
|
| 89 |
* Added admin bar icon to indicate wether password protection is enabled/disabled.
|
| 90 |
* Option to show "Remember me" checkbox. Props [Christian Güdel](https://github.com/cguedel).
|
