Version Description
- Tested up to 5.2
- Fix : Domain language
Download this release
Release Info
Developer | NicolasKulka |
Plugin | WPS Hide Login |
Version | 1.5.2.2 |
Comparing to | |
See all releases |
Code changes from version 1.5.2.1 to 1.5.2.2
- classes/plugin.php +3 -3
- readme.txt +7 -3
- wps-hide-login.php +4 -4
classes/plugin.php
CHANGED
@@ -429,7 +429,7 @@ class Plugin {
|
|
429 |
|
430 |
$pagenow = 'index.php';
|
431 |
} elseif ( ( strpos( rawurldecode( $_SERVER['REQUEST_URI'] ), 'wp-login.php' ) !== false
|
432 |
-
|| untrailingslashit( $request['path'] ) === site_url( 'wp-login', 'relative' ) )
|
433 |
&& ! is_admin() ) {
|
434 |
|
435 |
$this->wp_login_php = true;
|
@@ -438,7 +438,7 @@ class Plugin {
|
|
438 |
|
439 |
$pagenow = 'index.php';
|
440 |
|
441 |
-
} elseif ( untrailingslashit( $request['path'] ) === home_url( $this->new_login_slug(), 'relative' )
|
442 |
|| ( ! get_option( 'permalink_structure' )
|
443 |
&& isset( $_GET[ $this->new_login_slug() ] )
|
444 |
&& empty( $_GET[ $this->new_login_slug() ] ) ) ) {
|
@@ -446,7 +446,7 @@ class Plugin {
|
|
446 |
$pagenow = 'wp-login.php';
|
447 |
|
448 |
} elseif ( ( strpos( rawurldecode( $_SERVER['REQUEST_URI'] ), 'wp-register.php' ) !== false
|
449 |
-
|| untrailingslashit( $request['path'] ) === site_url( 'wp-register', 'relative' ) )
|
450 |
&& ! is_admin() ) {
|
451 |
|
452 |
$this->wp_login_php = true;
|
429 |
|
430 |
$pagenow = 'index.php';
|
431 |
} elseif ( ( strpos( rawurldecode( $_SERVER['REQUEST_URI'] ), 'wp-login.php' ) !== false
|
432 |
+
|| ( isset( $request['path'] ) && untrailingslashit( $request['path'] ) === site_url( 'wp-login', 'relative' ) ) )
|
433 |
&& ! is_admin() ) {
|
434 |
|
435 |
$this->wp_login_php = true;
|
438 |
|
439 |
$pagenow = 'index.php';
|
440 |
|
441 |
+
} elseif ( ( isset( $request['path'] ) && untrailingslashit( $request['path'] ) === home_url( $this->new_login_slug(), 'relative' ) )
|
442 |
|| ( ! get_option( 'permalink_structure' )
|
443 |
&& isset( $_GET[ $this->new_login_slug() ] )
|
444 |
&& empty( $_GET[ $this->new_login_slug() ] ) ) ) {
|
446 |
$pagenow = 'wp-login.php';
|
447 |
|
448 |
} elseif ( ( strpos( rawurldecode( $_SERVER['REQUEST_URI'] ), 'wp-register.php' ) !== false
|
449 |
+
|| ( isset( $request['path'] ) && untrailingslashit( $request['path'] ) === site_url( 'wp-register', 'relative' ) ) )
|
450 |
&& ! is_admin() ) {
|
451 |
|
452 |
$this->wp_login_php = true;
|
readme.txt
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
|
3 |
Contributors: tabrisrp, WPServeur, nicolaskulka
|
4 |
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: 5.
|
8 |
Requires PHP: 7.0
|
9 |
-
Stable tag: 1.5.2.
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -146,6 +146,10 @@ First step is to check your .htaccess file and compare it to a regular one, to s
|
|
146 |
|
147 |
== Changelog ==
|
148 |
|
|
|
|
|
|
|
|
|
149 |
= 1.5.2.1 =
|
150 |
* Fix : Notice: Undefined index: query
|
151 |
|
2 |
|
3 |
Contributors: tabrisrp, WPServeur, nicolaskulka
|
4 |
Donate link : https://www.paypal.me/donateWPServeur
|
5 |
+
Tags: rename, login, wp-login, wp-login.php, custom login url, jetpack, wpserveur
|
6 |
Requires at least: 4.1
|
7 |
+
Tested up to: 5.2
|
8 |
Requires PHP: 7.0
|
9 |
+
Stable tag: 1.5.2.2
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
146 |
|
147 |
== Changelog ==
|
148 |
|
149 |
+
= 1.5.2.2 =
|
150 |
+
* Tested up to 5.2
|
151 |
+
* Fix : Domain language
|
152 |
+
|
153 |
= 1.5.2.1 =
|
154 |
* Fix : Notice: Undefined index: query
|
155 |
|
wps-hide-login.php
CHANGED
@@ -5,9 +5,9 @@ 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.5.2.
|
9 |
Requires at least: 4.1
|
10 |
-
Tested up to: 5.
|
11 |
Requires PHP: 7.0
|
12 |
Domain Path: languages
|
13 |
Text Domain: wpserveur-hide-login
|
@@ -21,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
21 |
}
|
22 |
|
23 |
// Plugin constants
|
24 |
-
define( 'WPS_HIDE_LOGIN_VERSION', '1.5.2.
|
25 |
define( 'WPS_HIDE_LOGIN_FOLDER', 'wps-hide-login' );
|
26 |
|
27 |
define( 'WPS_HIDE_LOGIN_URL', plugin_dir_url( __FILE__ ) );
|
@@ -38,7 +38,7 @@ function plugins_loaded_wps_hide_login_plugin() {
|
|
38 |
|
39 |
load_plugin_textdomain( 'wpserveur-hide-login', false, dirname( WPS_HIDE_LOGIN_BASENAME ) . '/languages' );
|
40 |
|
41 |
-
$message = __( 'Do you like plugin WPS Hide Login? <br> Thank you for taking a few seconds to note us on', '
|
42 |
if( 'fr_FR' === get_locale() ) {
|
43 |
$message = 'Vous aimez l\'extension WPS Hide Login ?<br>Merci de prendre quelques secondes pour nous noter sur';
|
44 |
}
|
5 |
Donate link: https://www.paypal.me/donateWPServeur
|
6 |
Author: WPServeur, NicolasKulka, tabrisrp
|
7 |
Author URI: https://wpserveur.net
|
8 |
+
Version: 1.5.2.2
|
9 |
Requires at least: 4.1
|
10 |
+
Tested up to: 5.2
|
11 |
Requires PHP: 7.0
|
12 |
Domain Path: languages
|
13 |
Text Domain: wpserveur-hide-login
|
21 |
}
|
22 |
|
23 |
// Plugin constants
|
24 |
+
define( 'WPS_HIDE_LOGIN_VERSION', '1.5.2.2' );
|
25 |
define( 'WPS_HIDE_LOGIN_FOLDER', 'wps-hide-login' );
|
26 |
|
27 |
define( 'WPS_HIDE_LOGIN_URL', plugin_dir_url( __FILE__ ) );
|
38 |
|
39 |
load_plugin_textdomain( 'wpserveur-hide-login', false, dirname( WPS_HIDE_LOGIN_BASENAME ) . '/languages' );
|
40 |
|
41 |
+
$message = __( 'Do you like plugin WPS Hide Login? <br> Thank you for taking a few seconds to note us on', 'wpserveur-hide-login' );
|
42 |
if( 'fr_FR' === get_locale() ) {
|
43 |
$message = 'Vous aimez l\'extension WPS Hide Login ?<br>Merci de prendre quelques secondes pour nous noter sur';
|
44 |
}
|