WPS Hide Login - Version 1.4.5

Version Description

  • Fix : function wp_login_url on page 404 now returns an empty link
Download this release

Release Info

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

Code changes from version 1.4.4 to 1.4.5

Files changed (4) hide show
  1. classes/plugin.php +3 -0
  2. index.php +1 -0
  3. readme.txt +4 -1
  4. wps-hide-login.php +2 -2
classes/plugin.php CHANGED
@@ -592,6 +592,9 @@ class Plugin {
592
  * @return string
593
  */
594
  public function login_url( $login_url, $redirect, $force_reauth ) {
 
 
 
595
 
596
  if ( $force_reauth === false ) {
597
  return $login_url;
592
  * @return string
593
  */
594
  public function login_url( $login_url, $redirect, $force_reauth ) {
595
+ if ( is_404() ) {
596
+ return '#';
597
+ }
598
 
599
  if ( $force_reauth === false ) {
600
  return $login_url;
index.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php // Silence is golden
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link : https://www.paypal.me/donateWPServeur
5
  Tags: rename, login, wp-login, wp-login.php, custom login url, jetpack
6
  Requires at least: 4.1
7
  Tested up to: 4.9
8
- Stable tag: 1.4.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -145,6 +145,9 @@ First step is to check your .htaccess file and compare it to a regular one, to s
145
 
146
  == Changelog ==
147
 
 
 
 
148
  = 1.4.4 =
149
  * Fix : Too many redirects when a user clicks “Log in with WordPress.com”
150
 
5
  Tags: rename, login, wp-login, wp-login.php, custom login url, jetpack
6
  Requires at least: 4.1
7
  Tested up to: 4.9
8
+ Stable tag: 1.4.5
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
145
 
146
  == Changelog ==
147
 
148
+ = 1.4.5 =
149
+ * Fix : function wp_login_url on page 404 now returns an empty link
150
+
151
  = 1.4.4 =
152
  * Fix : Too many redirects when a user clicks “Log in with WordPress.com”
153
 
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, tabrisrp
7
  Author URI: https://wpserveur.net
8
- Version: 1.4.4
9
  Requires at least: 4.1
10
  Tested up to: 4.9
11
  Requires PHP: 7.0
@@ -21,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) {
21
  }
22
 
23
  // Plugin constants
24
- define( 'WPS_HIDE_LOGIN_VERSION', '1.4.4' );
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, tabrisrp
7
  Author URI: https://wpserveur.net
8
+ Version: 1.4.5
9
  Requires at least: 4.1
10
  Tested up to: 4.9
11
  Requires PHP: 7.0
21
  }
22
 
23
  // Plugin constants
24
+ define( 'WPS_HIDE_LOGIN_VERSION', '1.4.5' );
25
  define( 'WPS_HIDE_LOGIN_FOLDER', 'wps-hide-login' );
26
 
27
  define( 'WPS_HIDE_LOGIN_URL', plugin_dir_url( __FILE__ ) );