Version Description
- Fix: bug with Yoast SEO causing a Fatal Error and blank screen when loading /wp-admin/ without being logged-in
Download this release
Release Info
Developer | tabrisrp |
Plugin | WPS Hide Login |
Version | 1.1.6 |
Comparing to | |
See all releases |
Code changes from version 1.1.5 to 1.1.6
- readme.txt +7 -4
- wps-hide-login.php +10 -12
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: tabrisrp, WPServeur
|
|
4 |
Tags: rename, login, wp-login, wp-login.php, custom login url
|
5 |
Requires at least: 4.1
|
6 |
Tested up to: 4.5
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -12,20 +12,20 @@ Change wp-login.php to anything you want.
|
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
*WPS Hide Login* is a very light plugin that lets you easily and safely change the url of the login form to anything you want. It doesn’t literally rename or change files in core, nor does it add rewrite rules. It simply intercepts page requests and works on any WordPress website. The wp-admin directory and wp-login.php page become inaccessible, so you should bookmark or remember the url. Deactivating this plugin brings your site back exactly to the state it was before.
|
16 |
|
17 |
= Compatibility =
|
18 |
|
19 |
Requires WordPress 4.1 or higher. All login related things such as the registration form, lost password form, login widget and expired sessions just keep working.
|
20 |
|
21 |
-
It’s also compatible with any plugin that hooks in the login form, including
|
22 |
|
23 |
* BuddyPress,
|
24 |
* bbPress,
|
25 |
* Limit Login Attempts,
|
26 |
* and User Switching.
|
27 |
|
28 |
-
Obviously it doesn’t work with plugins that *hardcoded* wp-login.php.
|
29 |
|
30 |
Works with multisite, but not tested with subdomains. Activating it for a network allows you to set a networkwide default. Individual sites can still rename their login page to something else.
|
31 |
|
@@ -64,6 +64,9 @@ First step is to check your .htaccess file and compare it to a regular one, to s
|
|
64 |
|
65 |
== Changelog ==
|
66 |
|
|
|
|
|
|
|
67 |
= 1.1.5 =
|
68 |
* Fix: Stop displaying the new login url notice everywhere when settings are updated (thanks @ kmelia on GitHub)
|
69 |
* Improvement: better way of retrieving the 404 template
|
4 |
Tags: rename, login, wp-login, wp-login.php, custom login url
|
5 |
Requires at least: 4.1
|
6 |
Tested up to: 4.5
|
7 |
+
Stable tag: 1.1.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
*WPS Hide Login* is a very light plugin that lets you easily and safely change the url of the login form page to anything you want. It doesn’t literally rename or change files in core, nor does it add rewrite rules. It simply intercepts page requests and works on any WordPress website. The wp-admin directory and wp-login.php page become inaccessible, so you should bookmark or remember the url. Deactivating this plugin brings your site back exactly to the state it was before.
|
16 |
|
17 |
= Compatibility =
|
18 |
|
19 |
Requires WordPress 4.1 or higher. All login related things such as the registration form, lost password form, login widget and expired sessions just keep working.
|
20 |
|
21 |
+
It’s also compatible with any plugin that hooks in the login form, including:
|
22 |
|
23 |
* BuddyPress,
|
24 |
* bbPress,
|
25 |
* Limit Login Attempts,
|
26 |
* and User Switching.
|
27 |
|
28 |
+
Obviously it doesn’t work with plugins or themes that *hardcoded* wp-login.php.
|
29 |
|
30 |
Works with multisite, but not tested with subdomains. Activating it for a network allows you to set a networkwide default. Individual sites can still rename their login page to something else.
|
31 |
|
64 |
|
65 |
== Changelog ==
|
66 |
|
67 |
+
= 1.1.6 =
|
68 |
+
* Fix: bug with Yoast SEO causing a Fatal Error and blank screen when loading /wp-admin/ without being logged-in
|
69 |
+
|
70 |
= 1.1.5 =
|
71 |
* Fix: Stop displaying the new login url notice everywhere when settings are updated (thanks @ kmelia on GitHub)
|
72 |
* Improvement: better way of retrieving the 404 template
|
wps-hide-login.php
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
/*
|
3 |
Plugin Name: WPS Hide Login
|
4 |
Plugin URI: https://github.com/Tabrisrp/wps-hide-login
|
5 |
-
Description:
|
6 |
-
Author: WPServeur
|
7 |
Author URI: http://profiles.wordpress.org/tabrisrp/
|
8 |
-
Version: 1.1.
|
9 |
Text Domain: wps-hide-login
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -387,16 +387,14 @@ if ( defined( 'ABSPATH' )
|
|
387 |
|
388 |
global $pagenow;
|
389 |
|
390 |
-
if ( is_admin()
|
391 |
-
|
392 |
-
&& ! defined( 'DOING_AJAX' )
|
393 |
-
&& $pagenow !== 'admin-post.php' ) {
|
394 |
-
|
395 |
status_header(404);
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
|
|
400 |
exit;
|
401 |
}
|
402 |
|
2 |
/*
|
3 |
Plugin Name: WPS Hide Login
|
4 |
Plugin URI: https://github.com/Tabrisrp/wps-hide-login
|
5 |
+
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
|
6 |
+
Author: Remy Perona for WPServeur
|
7 |
Author URI: http://profiles.wordpress.org/tabrisrp/
|
8 |
+
Version: 1.1.6
|
9 |
Text Domain: wps-hide-login
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
387 |
|
388 |
global $pagenow;
|
389 |
|
390 |
+
if ( is_admin() && ! is_user_logged_in() && ! defined( 'DOING_AJAX' ) && $pagenow !== 'admin-post.php' ) {
|
391 |
+
require_once(ABSPATH . 'wp-admin/includes/admin.php');
|
|
|
|
|
|
|
392 |
status_header(404);
|
393 |
+
|
394 |
+
$template = get_404_template();
|
395 |
+
if ( $template = apply_filters( 'template_include', $template ) ) {
|
396 |
+
include( $template );
|
397 |
+
}
|
398 |
exit;
|
399 |
}
|
400 |
|