Version Description
- Fix : redirect change admin email
Download this release
Release Info
Developer | NicolasKulka |
Plugin | WPS Hide Login |
Version | 1.3.1 |
Comparing to | |
See all releases |
Code changes from version 1.3 to 1.3.1
- classes/plugin.php +3 -3
- readme.txt +4 -1
- wps-hide-login.php +2 -2
classes/plugin.php
CHANGED
@@ -410,13 +410,13 @@ if ( ! class_exists( 'WPS_Hide_Login' ) ) {
|
|
410 |
|
411 |
global $pagenow;
|
412 |
|
413 |
-
|
|
|
|
|
414 |
wp_safe_redirect( home_url( '/404' ) );
|
415 |
die();
|
416 |
}
|
417 |
|
418 |
-
$request = parse_url( $_SERVER['REQUEST_URI'] );
|
419 |
-
|
420 |
if ( $pagenow === 'wp-login.php'
|
421 |
&& $request['path'] !== $this->user_trailingslashit( $request['path'] )
|
422 |
&& get_option( 'permalink_structure' ) ) {
|
410 |
|
411 |
global $pagenow;
|
412 |
|
413 |
+
$request = parse_url( $_SERVER['REQUEST_URI'] );
|
414 |
+
|
415 |
+
if ( is_admin() && ! is_user_logged_in() && ! defined( 'DOING_AJAX' ) && $pagenow !== 'admin-post.php' && ( isset( $_GET ) && empty( $_GET['adminhash'] ) && $request['path'] !== '/wp-admin/options.php' ) ) {
|
416 |
wp_safe_redirect( home_url( '/404' ) );
|
417 |
die();
|
418 |
}
|
419 |
|
|
|
|
|
420 |
if ( $pagenow === 'wp-login.php'
|
421 |
&& $request['path'] !== $this->user_trailingslashit( $request['path'] )
|
422 |
&& get_option( 'permalink_structure' ) ) {
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: tabrisrp, WPServeur, nicolaskulka
|
|
4 |
Tags: rename, login, wp-login, wp-login.php, custom login url
|
5 |
Requires at least: 4.1
|
6 |
Tested up to: 4.9
|
7 |
-
Stable tag: 1.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -140,6 +140,9 @@ First step is to check your .htaccess file and compare it to a regular one, to s
|
|
140 |
|
141 |
== Changelog ==
|
142 |
|
|
|
|
|
|
|
143 |
= 1.3 =
|
144 |
* Fix : redirect wp-register.php
|
145 |
|
4 |
Tags: rename, login, wp-login, wp-login.php, custom login url
|
5 |
Requires at least: 4.1
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 1.3.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
140 |
|
141 |
== Changelog ==
|
142 |
|
143 |
+
= 1.3.1 =
|
144 |
+
* Fix : redirect change admin email
|
145 |
+
|
146 |
= 1.3 =
|
147 |
* Fix : redirect wp-register.php
|
148 |
|
wps-hide-login.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WPS Hide Login
|
|
4 |
Description: Protect your website by changing the login URL and preventing access to wp-login.php page and wp-admin directory while not logged-in
|
5 |
Author: WPServeur, NicolasKulka, tabrisrp
|
6 |
Author URI: https://wpserveur.net
|
7 |
-
Version: 1.3
|
8 |
Requires at least: 4.1
|
9 |
Tested up to: 4.9
|
10 |
License: GPLv2 or later
|
@@ -17,7 +17,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
17 |
}
|
18 |
|
19 |
// Plugin constants
|
20 |
-
define( 'WPS_HIDE_LOGIN_VERSION', '1.3' );
|
21 |
define( 'WPS_HIDE_LOGIN_FOLDER', 'wps-hide-login' );
|
22 |
|
23 |
define( 'WPS_HIDE_LOGIN_URL', plugin_dir_url( __FILE__ ) );
|
4 |
Description: Protect your website by changing the login URL and preventing access to wp-login.php page and wp-admin directory while not logged-in
|
5 |
Author: WPServeur, NicolasKulka, tabrisrp
|
6 |
Author URI: https://wpserveur.net
|
7 |
+
Version: 1.3.1
|
8 |
Requires at least: 4.1
|
9 |
Tested up to: 4.9
|
10 |
License: GPLv2 or later
|
17 |
}
|
18 |
|
19 |
// Plugin constants
|
20 |
+
define( 'WPS_HIDE_LOGIN_VERSION', '1.3.1' );
|
21 |
define( 'WPS_HIDE_LOGIN_FOLDER', 'wps-hide-login' );
|
22 |
|
23 |
define( 'WPS_HIDE_LOGIN_URL', plugin_dir_url( __FILE__ ) );
|