Version Description
- Fix notice "Notice: Trying to get property 'href' of non-object"
Download this release
Release Info
Developer | NicolasKulka |
Plugin | WPS Hide Login |
Version | 1.8.2 |
Comparing to | |
See all releases |
Code changes from version 1.8.1 to 1.8.2
- classes/plugin.php +1 -1
- readme.txt +4 -1
- wps-hide-login.php +2 -2
classes/plugin.php
CHANGED
@@ -143,7 +143,7 @@ class Plugin {
|
|
143 |
$args = $node;
|
144 |
$old_href = $args->href;
|
145 |
$args->href = preg_replace( '/wp-admin\/$/', "$login_slug/", $old_href );
|
146 |
-
if ( $old_href !== $
|
147 |
$wp_admin_bar->add_node( $args );
|
148 |
}
|
149 |
} elseif ( strpos( $node->href, '/wp-admin/' ) !== false ) {
|
143 |
$args = $node;
|
144 |
$old_href = $args->href;
|
145 |
$args->href = preg_replace( '/wp-admin\/$/', "$login_slug/", $old_href );
|
146 |
+
if ( $old_href !== $args->href ) {
|
147 |
$wp_admin_bar->add_node( $args );
|
148 |
}
|
149 |
} elseif ( strpos( $node->href, '/wp-admin/' ) !== false ) {
|
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.8.
|
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.8.1 =
|
152 |
* Fix fatal error with vendor wp-dismissible-notices-handler and wp-review-me
|
153 |
|
6 |
Requires at least: 4.1
|
7 |
Tested up to: 5.6
|
8 |
Requires PHP: 7.0
|
9 |
+
Stable tag: 1.8.2
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
148 |
|
149 |
== Changelog ==
|
150 |
|
151 |
+
= 1.8.2 =
|
152 |
+
* Fix notice "Notice: Trying to get property 'href' of non-object"
|
153 |
+
|
154 |
= 1.8.1 =
|
155 |
* Fix fatal error with vendor wp-dismissible-notices-handler and wp-review-me
|
156 |
|
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.8.
|
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.8.
|
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.8.2
|
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.8.2' );
|
25 |
define( 'WPS_HIDE_LOGIN_FOLDER', 'wps-hide-login' );
|
26 |
|
27 |
define( 'WPS_HIDE_LOGIN_URL', plugin_dir_url( __FILE__ ) );
|