Force Login - Version 5.6.3

Version Description

  • Fix - Fixed issue for sites with a custom login URL.
Download this release

Release Info

Developer kevinvess
Plugin Icon 128x128 Force Login
Version 5.6.3
Comparing to
See all releases

Code changes from version 5.6.2 to 5.6.3

Files changed (2) hide show
  1. readme.txt +6 -2
  2. wp-force-login.php +2 -2
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: kevinvess
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=forcelogin%40vess%2eme&lc=US&item_name=Force%20Login%20for%20WordPress&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
4
  Tags: privacy, private, protected, registered only, restricted, access, closed, force user login, hidden, login, password
5
  Requires at least: 4.6
6
- Tested up to: 5.7
7
- Stable tag: 5.6.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -60,6 +60,7 @@ You may also use the WordPress [Conditional Tags](https://developer.wordpress.or
60
  * @return bool
61
  */
62
  function my_forcelogin_bypass( $bypass, $visited_url ) {
 
63
  // Allow all single posts
64
  if ( is_single() ) {
65
  $bypass = true;
@@ -98,6 +99,9 @@ add_action( 'login_enqueue_scripts', 'my_forcelogin_hide_backtoblog' );
98
 
99
  == Changelog ==
100
 
 
 
 
101
  = 5.6.2 =
102
  * Fix - Fixed issue for sites with a custom login URL.
103
 
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=forcelogin%40vess%2eme&lc=US&item_name=Force%20Login%20for%20WordPress&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
4
  Tags: privacy, private, protected, registered only, restricted, access, closed, force user login, hidden, login, password
5
  Requires at least: 4.6
6
+ Tested up to: 6.0
7
+ Stable tag: 5.6.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
60
  * @return bool
61
  */
62
  function my_forcelogin_bypass( $bypass, $visited_url ) {
63
+
64
  // Allow all single posts
65
  if ( is_single() ) {
66
  $bypass = true;
99
 
100
  == Changelog ==
101
 
102
+ = 5.6.3 =
103
+ * Fix - Fixed issue for sites with a custom login URL.
104
+
105
  = 5.6.2 =
106
  * Fix - Fixed issue for sites with a custom login URL.
107
 
wp-force-login.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Force Login
4
  Plugin URI: https://wordpress.org/plugins/wp-force-login/
5
  Description: Easily hide your WordPress site from public viewing by requiring visitors to log in first. Activate to turn on.
6
- Version: 5.6.2
7
  Author: Kevin Vess
8
  Author URI: http://vess.me/
9
 
@@ -31,7 +31,7 @@ function v_forcelogin() {
31
  $url = $schema . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
32
 
33
  // Bail if visiting the login URL. Fix for custom login URLs
34
- if ( wp_login_url() === preg_replace( '/\?.*/', '', $url ) ) {
35
  return;
36
  }
37
 
3
  Plugin Name: Force Login
4
  Plugin URI: https://wordpress.org/plugins/wp-force-login/
5
  Description: Easily hide your WordPress site from public viewing by requiring visitors to log in first. Activate to turn on.
6
+ Version: 5.6.3
7
  Author: Kevin Vess
8
  Author URI: http://vess.me/
9
 
31
  $url = $schema . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
32
 
33
  // Bail if visiting the login URL. Fix for custom login URLs
34
+ if ( preg_replace( '/\?.*/', '', wp_login_url() ) === preg_replace( '/\?.*/', '', $url ) ) {
35
  return;
36
  }
37