Version Description
- Add action before redirect
- Fix redirect with wp-cli (Thanks @netson)
Download this release
Release Info
Developer | NicolasKulka |
Plugin | WPS Hide Login |
Version | 1.9.2 |
Comparing to | |
See all releases |
Code changes from version 1.9.1 to 1.9.2
- classes/plugin.php +3 -1
- readme.txt +5 -1
- wps-hide-login.php +2 -2
classes/plugin.php
CHANGED
@@ -526,9 +526,11 @@ class Plugin {
|
|
526 |
|
527 |
$request = parse_url( rawurldecode( $_SERVER['REQUEST_URI'] ) );
|
528 |
|
|
|
|
|
529 |
if ( ! ( isset( $_GET['action'] ) && $_GET['action'] === 'postpass' && isset( $_POST['post_password'] ) ) ) {
|
530 |
|
531 |
-
if ( is_admin() && ! is_user_logged_in() && ! defined( 'DOING_AJAX' ) && ! defined( 'DOING_CRON' ) && $pagenow !== 'admin-post.php' && $request['path'] !== '/wp-admin/options.php' ) {
|
532 |
wp_safe_redirect( $this->new_redirect_url() );
|
533 |
die();
|
534 |
}
|
526 |
|
527 |
$request = parse_url( rawurldecode( $_SERVER['REQUEST_URI'] ) );
|
528 |
|
529 |
+
do_action( 'wps_hide_login_before_redirect', $request );
|
530 |
+
|
531 |
if ( ! ( isset( $_GET['action'] ) && $_GET['action'] === 'postpass' && isset( $_POST['post_password'] ) ) ) {
|
532 |
|
533 |
+
if ( is_admin() && ! is_user_logged_in() && ! defined( 'WP_CLI' ) && ! defined( 'DOING_AJAX' ) && ! defined( 'DOING_CRON' ) && $pagenow !== 'admin-post.php' && $request['path'] !== '/wp-admin/options.php' ) {
|
534 |
wp_safe_redirect( $this->new_redirect_url() );
|
535 |
die();
|
536 |
}
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Tags: rename, login, wp-login, wp-login.php, custom login url, jetpack, wpserveu
|
|
6 |
Requires at least: 4.1
|
7 |
Tested up to: 5.8
|
8 |
Requires PHP: 7.0
|
9 |
-
Stable tag: 1.9.
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -148,6 +148,10 @@ La première étape consiste à vérifier votre fichier .htaccess et à le compa
|
|
148 |
|
149 |
== Changelog ==
|
150 |
|
|
|
|
|
|
|
|
|
151 |
= 1.9.1 =
|
152 |
* Fix : by-pass security issue allowing an unauthenticated user to get login page by setting a random referer string via curl request.
|
153 |
|
6 |
Requires at least: 4.1
|
7 |
Tested up to: 5.8
|
8 |
Requires PHP: 7.0
|
9 |
+
Stable tag: 1.9.2
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
148 |
|
149 |
== Changelog ==
|
150 |
|
151 |
+
= 1.9.2 =
|
152 |
+
* Add action before redirect
|
153 |
+
* Fix redirect with wp-cli (Thanks @netson)
|
154 |
+
|
155 |
= 1.9.1 =
|
156 |
* Fix : by-pass security issue allowing an unauthenticated user to get login page by setting a random referer string via curl request.
|
157 |
|
wps-hide-login.php
CHANGED
@@ -5,7 +5,7 @@ Description: Protect your website by changing the login URL and preventing acces
|
|
5 |
Donate link: https://www.paypal.me/donateWPServeur
|
6 |
Author: WPServeur, NicolasKulka, wpformation
|
7 |
Author URI: https://wpserveur.net
|
8 |
-
Version: 1.9.
|
9 |
Requires at least: 4.1
|
10 |
Tested up to: 5.8
|
11 |
Requires PHP: 7.0
|
@@ -21,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
21 |
}
|
22 |
|
23 |
// Plugin constants
|
24 |
-
define( 'WPS_HIDE_LOGIN_VERSION', '1.9.
|
25 |
define( 'WPS_HIDE_LOGIN_FOLDER', 'wps-hide-login' );
|
26 |
|
27 |
define( 'WPS_HIDE_LOGIN_URL', plugin_dir_url( __FILE__ ) );
|
5 |
Donate link: https://www.paypal.me/donateWPServeur
|
6 |
Author: WPServeur, NicolasKulka, wpformation
|
7 |
Author URI: https://wpserveur.net
|
8 |
+
Version: 1.9.2
|
9 |
Requires at least: 4.1
|
10 |
Tested up to: 5.8
|
11 |
Requires PHP: 7.0
|
21 |
}
|
22 |
|
23 |
// Plugin constants
|
24 |
+
define( 'WPS_HIDE_LOGIN_VERSION', '1.9.2' );
|
25 |
define( 'WPS_HIDE_LOGIN_FOLDER', 'wps-hide-login' );
|
26 |
|
27 |
define( 'WPS_HIDE_LOGIN_URL', plugin_dir_url( __FILE__ ) );
|