WPS Hide Login - Version 1.9.3

Version Description

  • Fix : PHP Warning: Undefined array key "path"
Download this release

Release Info

Developer NicolasKulka
Plugin Icon 128x128 WPS Hide Login
Version 1.9.3
Comparing to
See all releases

Code changes from version 1.9.2 to 1.9.3

Files changed (3) hide show
  1. classes/plugin.php +2 -5
  2. readme.txt +4 -1
  3. wps-hide-login.php +2 -2
classes/plugin.php CHANGED
@@ -540,15 +540,12 @@ class Plugin {
540
  die();
541
  }
542
 
543
- if ( ! is_user_logged_in() && $request['path'] === '/wp-admin/options.php' ) {
544
  header('Location: ' . $this->new_redirect_url() );
545
  die;
546
  }
547
 
548
- if ( $pagenow === 'wp-login.php'
549
- && $request['path'] !== $this->user_trailingslashit( $request['path'] )
550
- && get_option( 'permalink_structure' ) ) {
551
-
552
  wp_safe_redirect( $this->user_trailingslashit( $this->new_login_url() )
553
  . ( ! empty( $_SERVER['QUERY_STRING'] ) ? '?' . $_SERVER['QUERY_STRING'] : '' ) );
554
 
540
  die();
541
  }
542
 
543
+ if ( ! is_user_logged_in() && isset( $request['path'] ) && $request['path'] === '/wp-admin/options.php' ) {
544
  header('Location: ' . $this->new_redirect_url() );
545
  die;
546
  }
547
 
548
+ if ( $pagenow === 'wp-login.php' && isset( $request['path'] ) && $request['path'] !== $this->user_trailingslashit( $request['path'] ) && get_option( 'permalink_structure' ) ) {
 
 
 
549
  wp_safe_redirect( $this->user_trailingslashit( $this->new_login_url() )
550
  . ( ! empty( $_SERVER['QUERY_STRING'] ) ? '?' . $_SERVER['QUERY_STRING'] : '' ) );
551
 
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.2
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.9.2 =
152
  * Add action before redirect
153
  * Fix redirect with wp-cli (Thanks @netson)
6
  Requires at least: 4.1
7
  Tested up to: 5.8
8
  Requires PHP: 7.0
9
+ Stable tag: 1.9.3
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.3 =
152
+ * Fix : PHP Warning: Undefined array key "path"
153
+
154
  = 1.9.2 =
155
  * Add action before redirect
156
  * Fix redirect with wp-cli (Thanks @netson)
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.2
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.2' );
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.3
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.3' );
25
  define( 'WPS_HIDE_LOGIN_FOLDER', 'wps-hide-login' );
26
 
27
  define( 'WPS_HIDE_LOGIN_URL', plugin_dir_url( __FILE__ ) );