Force Login - Version 4.2

Version Description

  • Tweak - Made plugin translation ready.
Download this release

Release Info

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

Code changes from version 4.1 to 4.2

Files changed (2) hide show
  1. readme.txt +19 -3
  2. wp-force-login.php +6 -2
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: kevinvess
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=kevin%40vess%2eme&lc=US&item_name=Kevin%20Vess%20-%20WordPress&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
4
  Tags: access, closed, force user login, hidden, login, password, privacy, private, protected, registered only, restricted
5
  Requires at least: 2.7
6
- Tested up to: 4.5
7
- Stable tag: 4.1
8
  License: GPLv2 or later
9
 
10
  Force Login is a simple lightweight plugin that requires visitors to log in to interact with the website.
@@ -83,7 +83,6 @@ For example:
83
 
84
  Checkout the [Force Login Wiki on GitHub](https://github.com/kevinvess/wp-force-login/wiki/Whitelist-Dynamic-URLs) for examples of the different methods for whitelisting dynamic URLs.
85
 
86
-
87
  = 4. How do I get the WordPress mobile app to work? =
88
 
89
  By default, the plugin blocks access to all page URLs; you will need to whitelist the XML-RPC page to allow the WordPress app to access your site for remote publishing.
@@ -101,9 +100,26 @@ function my_forcelogin_whitelist( $whitelist ) {
101
  add_filter('v_forcelogin_whitelist', 'my_forcelogin_whitelist', 10, 1);
102
  `
103
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
 
105
  == Changelog ==
106
 
 
 
 
107
  = 4.1 =
108
  * Fix - Multisite 'Super Admin' users do not need assigned sites to access the network.
109
 
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=kevin%40vess%2eme&lc=US&item_name=Kevin%20Vess%20-%20WordPress&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
4
  Tags: access, closed, force user login, hidden, login, password, privacy, private, protected, registered only, restricted
5
  Requires at least: 2.7
6
+ Tested up to: 4.6
7
+ Stable tag: 4.2
8
  License: GPLv2 or later
9
 
10
  Force Login is a simple lightweight plugin that requires visitors to log in to interact with the website.
83
 
84
  Checkout the [Force Login Wiki on GitHub](https://github.com/kevinvess/wp-force-login/wiki/Whitelist-Dynamic-URLs) for examples of the different methods for whitelisting dynamic URLs.
85
 
 
86
  = 4. How do I get the WordPress mobile app to work? =
87
 
88
  By default, the plugin blocks access to all page URLs; you will need to whitelist the XML-RPC page to allow the WordPress app to access your site for remote publishing.
100
  add_filter('v_forcelogin_whitelist', 'my_forcelogin_whitelist', 10, 1);
101
  `
102
 
103
+ = 5. How do I hide the "← Back to {sitename}" link on the login screen? =
104
+
105
+ The WordPress login screen includes a "← Back to {sitename}" link below the login form; which may not actually take you back to the site while Force Login is activated. You can hide this link by adding the following action to your functions.php file.
106
+
107
+ **Requires:** WordPress 2.5 or higher
108
+
109
+ `
110
+ // Hide the 'Back to {sitename}' link on the login screen.
111
+ function my_forcelogin_hide_backtoblog() {
112
+ echo '<style type="text/css">#backtoblog{display:none;}</style>';
113
+ }
114
+ add_action('login_enqueue_scripts', 'my_forcelogin_hide_backtoblog');
115
+ `
116
+
117
 
118
  == Changelog ==
119
 
120
+ = 4.2 =
121
+ * Tweak - Made plugin translation ready.
122
+
123
  = 4.1 =
124
  * Fix - Multisite 'Super Admin' users do not need assigned sites to access the network.
125
 
wp-force-login.php CHANGED
@@ -3,9 +3,13 @@
3
  Plugin Name: Force Login
4
  Plugin URI: http://vess.me/
5
  Description: Easily hide your WordPress site from public viewing by requiring visitors to log in first. Activate to turn on.
6
- Version: 4.1
7
  Author: Kevin Vess
8
  Author URI: http://vess.me/
 
 
 
 
9
  License: GPLv2 or later
10
  */
11
 
@@ -57,7 +61,7 @@ function v_forcelogin() {
57
  if ( function_exists('is_multisite') && is_multisite() ) {
58
  global $current_user; get_currentuserinfo();
59
  if ( !is_user_member_of_blog( $current_user->ID ) && !is_super_admin() )
60
- wp_die( __( "You're not authorized to access this site." ), __( get_option('blogname') . ' &rsaquo; Error' ) );
61
  }
62
  }
63
  }
3
  Plugin Name: Force Login
4
  Plugin URI: http://vess.me/
5
  Description: Easily hide your WordPress site from public viewing by requiring visitors to log in first. Activate to turn on.
6
+ Version: 4.2
7
  Author: Kevin Vess
8
  Author URI: http://vess.me/
9
+
10
+ Text Domain: wp-force-login
11
+ Domain Path: /languages
12
+
13
  License: GPLv2 or later
14
  */
15
 
61
  if ( function_exists('is_multisite') && is_multisite() ) {
62
  global $current_user; get_currentuserinfo();
63
  if ( !is_user_member_of_blog( $current_user->ID ) && !is_super_admin() )
64
+ wp_die( __( "You're not authorized to access this site.", 'wp-force-login' ), get_option('blogname') . ' &rsaquo; ' . __( "Error", 'wp-force-login' ) );
65
  }
66
  }
67
  }