Version Description
- Fix : loopback request site-health
Download this release
Release Info
Developer | NicolasKulka |
Plugin | WPS Hide Login |
Version | 1.6.1 |
Comparing to | |
See all releases |
Code changes from version 1.6 to 1.6.1
- classes/plugin.php +9 -1
- readme.txt +4 -1
- wps-hide-login.php +2 -2
classes/plugin.php
CHANGED
@@ -78,6 +78,14 @@ class Plugin {
|
|
78 |
add_filter( 'login_url', array( $this, 'login_url' ), 10, 3 );
|
79 |
|
80 |
add_filter( 'user_request_action_email_content', array( $this, 'user_request_action_email_content' ), 999, 2 );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
}
|
82 |
|
83 |
public function user_request_action_email_content( $email_text, $email_data ) {
|
@@ -430,7 +438,7 @@ class Plugin {
|
|
430 |
global $pagenow;
|
431 |
|
432 |
if ( ! is_multisite()
|
433 |
-
&& ( strpos( rawurldecode( $_SERVER['REQUEST_URI'] )
|
434 |
|| strpos( rawurldecode( $_SERVER['REQUEST_URI'] ), 'wp-activate' ) !== false ) && apply_filters( 'wps_hide_login_signup_enable', false ) === false ) {
|
435 |
|
436 |
wp_die( __( 'This feature is not enabled.', 'wps-hide-login' ) );
|
78 |
add_filter( 'login_url', array( $this, 'login_url' ), 10, 3 );
|
79 |
|
80 |
add_filter( 'user_request_action_email_content', array( $this, 'user_request_action_email_content' ), 999, 2 );
|
81 |
+
|
82 |
+
add_filter( 'site_status_tests', array( $this, 'site_status_tests' ) );
|
83 |
+
}
|
84 |
+
|
85 |
+
public function site_status_tests( $tests ) {
|
86 |
+
unset( $tests['async']['loopback_requests'] );
|
87 |
+
|
88 |
+
return $tests;
|
89 |
}
|
90 |
|
91 |
public function user_request_action_email_content( $email_text, $email_data ) {
|
438 |
global $pagenow;
|
439 |
|
440 |
if ( ! is_multisite()
|
441 |
+
&& ( strpos( rawurldecode( $_SERVER['REQUEST_URI'] ), 'wp-signup' ) !== false
|
442 |
|| strpos( rawurldecode( $_SERVER['REQUEST_URI'] ), 'wp-activate' ) !== false ) && apply_filters( 'wps_hide_login_signup_enable', false ) === false ) {
|
443 |
|
444 |
wp_die( __( 'This feature is not enabled.', 'wps-hide-login' ) );
|
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.6
|
8 |
Requires PHP: 7.0
|
9 |
-
Stable tag: 1.6
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -148,6 +148,9 @@ La première étape consiste à vérifier votre fichier .htaccess et à le compa
|
|
148 |
|
149 |
== Changelog ==
|
150 |
|
|
|
|
|
|
|
151 |
= 1.6 =
|
152 |
* Tested up to 5.6
|
153 |
* Add compatibility with PHP8
|
6 |
Requires at least: 4.1
|
7 |
Tested up to: 5.6
|
8 |
Requires PHP: 7.0
|
9 |
+
Stable tag: 1.6.1
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
148 |
|
149 |
== Changelog ==
|
150 |
|
151 |
+
= 1.6.1 =
|
152 |
+
* Fix : loopback request site-health
|
153 |
+
|
154 |
= 1.6 =
|
155 |
* Tested up to 5.6
|
156 |
* Add compatibility with PHP8
|
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.6
|
9 |
Requires at least: 4.1
|
10 |
Tested up to: 5.6
|
11 |
Requires PHP: 7.0
|
@@ -21,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
21 |
}
|
22 |
|
23 |
// Plugin constants
|
24 |
-
define( 'WPS_HIDE_LOGIN_VERSION', '1.6' );
|
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.6.1
|
9 |
Requires at least: 4.1
|
10 |
Tested up to: 5.6
|
11 |
Requires PHP: 7.0
|
21 |
}
|
22 |
|
23 |
// Plugin constants
|
24 |
+
define( 'WPS_HIDE_LOGIN_VERSION', '1.6.1' );
|
25 |
define( 'WPS_HIDE_LOGIN_FOLDER', 'wps-hide-login' );
|
26 |
|
27 |
define( 'WPS_HIDE_LOGIN_URL', plugin_dir_url( __FILE__ ) );
|