WPS Hide Login - Version 1.1.7

Version Description

  • Fix: change fake 404 on wp-admin when not logged-in to a 403 forbidden to prevent fatal errors with various themes & plugins
Download this release

Release Info

Developer tabrisrp
Plugin Icon 128x128 WPS Hide Login
Version 1.1.7
Comparing to
See all releases

Code changes from version 1.1.6 to 1.1.7

Files changed (2) hide show
  1. readme.txt +5 -2
  2. wps-hide-login.php +2 -9
readme.txt CHANGED
@@ -3,8 +3,8 @@
3
  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.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -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.6 =
68
  * Fix: bug with Yoast SEO causing a Fatal Error and blank screen when loading /wp-admin/ without being logged-in
69
 
3
  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.8
7
+ Stable tag: 1.1.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
64
 
65
  == Changelog ==
66
 
67
+ = 1.1.7 =
68
+ * Fix: change fake 404 on wp-admin when not logged-in to a 403 forbidden to prevent fatal errors with various themes & plugins
69
+
70
  = 1.1.6 =
71
  * Fix: bug with Yoast SEO causing a Fatal Error and blank screen when loading /wp-admin/ without being logged-in
72
 
wps-hide-login.php CHANGED
@@ -5,7 +5,7 @@ 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
@@ -388,14 +388,7 @@ if ( defined( 'ABSPATH' )
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
 
401
  $request = parse_url( $_SERVER['REQUEST_URI'] );
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.7
9
  Text Domain: wps-hide-login
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
388
  global $pagenow;
389
 
390
  if ( is_admin() && ! is_user_logged_in() && ! defined( 'DOING_AJAX' ) && $pagenow !== 'admin-post.php' ) {
391
+ wp_die( __( 'This has been disabled', 'wps-hide-login' ), 403 );
 
 
 
 
 
 
 
392
  }
393
 
394
  $request = parse_url( $_SERVER['REQUEST_URI'] );