Version Description
- Fixes a bug with wp_login_failed action where (string) username was not sent with the WP_Error object.
Download this release
Release Info
| Developer | theandystratton |
| Plugin | |
| Version | 2.4.0 |
| Comparing to | |
| See all releases | |
Code changes from version 2.3.0 to 2.4.0
- pagerestrict.php +2 -2
- readme.txt +6 -0
pagerestrict.php
CHANGED
|
@@ -5,7 +5,7 @@ Plugin URI: http://theandystratton.com/pagerestrict
|
|
| 5 |
Description: Restrict certain pages to logged in users
|
| 6 |
Author: Matt Martz & Andy Stratton
|
| 7 |
Author URI: http://theandystratton.com
|
| 8 |
-
Version: 2.
|
| 9 |
|
| 10 |
Page Restrict is released under the GNU Lesser General Public License (LGPL)
|
| 11 |
http://www.gnu.org/licenses/lgpl-3.0.txt
|
|
@@ -192,7 +192,7 @@ function pr_authenticate( $error, $user, $pass )
|
|
| 192 |
$error->user_login = $_POST['log'];
|
| 193 |
|
| 194 |
if ( \is_wp_error( $error ) )
|
| 195 |
-
\do_action( 'wp_login_failed', $error );
|
| 196 |
|
| 197 |
return $error;
|
| 198 |
}
|
| 5 |
Description: Restrict certain pages to logged in users
|
| 6 |
Author: Matt Martz & Andy Stratton
|
| 7 |
Author URI: http://theandystratton.com
|
| 8 |
+
Version: 2.4.0
|
| 9 |
|
| 10 |
Page Restrict is released under the GNU Lesser General Public License (LGPL)
|
| 11 |
http://www.gnu.org/licenses/lgpl-3.0.txt
|
| 192 |
$error->user_login = $_POST['log'];
|
| 193 |
|
| 194 |
if ( \is_wp_error( $error ) )
|
| 195 |
+
\do_action( 'wp_login_failed', $user, $error );
|
| 196 |
|
| 197 |
return $error;
|
| 198 |
}
|
readme.txt
CHANGED
|
@@ -47,6 +47,12 @@ NOTE: See "Other Notes" for Upgrade and Usage Instructions as well as other pert
|
|
| 47 |
|
| 48 |
== Changelog ==
|
| 49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
= 2.2.9 =
|
| 51 |
* Compatibility for WP 5.6
|
| 52 |
* PHP 7.4 updates/code clean up
|
| 47 |
|
| 48 |
== Changelog ==
|
| 49 |
|
| 50 |
+
= 2.4.0 =
|
| 51 |
+
* Fixes a bug with wp_login_failed action where (string) username was not sent with the WP_Error object.
|
| 52 |
+
|
| 53 |
+
= 2.3.0 =
|
| 54 |
+
* Code clean up
|
| 55 |
+
|
| 56 |
= 2.2.9 =
|
| 57 |
* Compatibility for WP 5.6
|
| 58 |
* PHP 7.4 updates/code clean up
|
