WPS Hide Login - Version 1.3

Version Description

  • Fix : redirect wp-register.php
Download this release

Release Info

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

Code changes from version 1.2.7 to 1.3

Files changed (3) hide show
  1. classes/plugin.php +11 -4
  2. readme.txt +4 -1
  3. wps-hide-login.php +2 -2
classes/plugin.php CHANGED
@@ -385,6 +385,15 @@ if ( ! class_exists( 'WPS_Hide_Login' ) ) {
385
 
386
  $pagenow = 'wp-login.php';
387
 
 
 
 
 
 
 
 
 
 
388
  }
389
 
390
  }
@@ -524,10 +533,8 @@ if ( ! class_exists( 'WPS_Hide_Login' ) ) {
524
  /**
525
  * Load scripts
526
  */
527
- public function admin_enqueue_scripts() {
528
- $screen = get_current_screen();
529
-
530
- if ( 'options-general' != $screen->id ) {
531
  return false;
532
  }
533
 
385
 
386
  $pagenow = 'wp-login.php';
387
 
388
+ } elseif ( ( strpos( rawurldecode( $_SERVER['REQUEST_URI'] ), 'wp-register.php' ) !== false
389
+ || untrailingslashit( $request['path'] ) === site_url( 'wp-register', 'relative' ) )
390
+ && ! is_admin() ) {
391
+
392
+ $this->wp_login_php = true;
393
+
394
+ $_SERVER['REQUEST_URI'] = $this->user_trailingslashit( '/' . str_repeat( '-/', 10 ) );
395
+
396
+ $pagenow = 'index.php';
397
  }
398
 
399
  }
533
  /**
534
  * Load scripts
535
  */
536
+ public function admin_enqueue_scripts( $hook ) {
537
+ if ( 'options-general.php' != $hook ) {
 
 
538
  return false;
539
  }
540
 
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.2.7
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.2.7 =
144
  * Enhancement for Woocommerce email notification
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
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 =
144
+ * Fix : redirect wp-register.php
145
+
146
  = 1.2.7 =
147
  * Enhancement for Woocommerce email notification
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.2.7
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.2.7' );
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
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' );
21
  define( 'WPS_HIDE_LOGIN_FOLDER', 'wps-hide-login' );
22
 
23
  define( 'WPS_HIDE_LOGIN_URL', plugin_dir_url( __FILE__ ) );