WPS Hide Login - Version 1.8.5

Version Description

  • Fix : Force refresh permalinks update option 'whl_page'
Download this release

Release Info

Developer NicolasKulka
Plugin Icon 128x128 WPS Hide Login
Version 1.8.5
Comparing to
See all releases

Code changes from version 1.8.4 to 1.8.5

Files changed (3) hide show
  1. classes/plugin.php +3 -2
  2. readme.txt +4 -1
  3. wps-hide-login.php +2 -2
classes/plugin.php CHANGED
@@ -257,15 +257,16 @@ class Plugin {
257
  && strpos( $whl_page, 'wp-login' ) === false
258
  && ! in_array( $whl_page, $this->forbidden_slugs() ) ) {
259
 
 
260
  update_site_option( 'whl_page', $whl_page );
261
- flush_rewrite_rules();
262
 
263
  }
264
  if ( ( $whl_redirect_admin = sanitize_title_with_dashes( $_POST['whl_redirect_admin'] ) )
265
  && strpos( $whl_redirect_admin, '404' ) === false ) {
266
 
 
267
  update_site_option( 'whl_redirect_admin', $whl_redirect_admin );
268
- flush_rewrite_rules();
269
 
270
  }
271
  }
257
  && strpos( $whl_page, 'wp-login' ) === false
258
  && ! in_array( $whl_page, $this->forbidden_slugs() ) ) {
259
 
260
+ flush_rewrite_rules( true );
261
  update_site_option( 'whl_page', $whl_page );
262
+
263
 
264
  }
265
  if ( ( $whl_redirect_admin = sanitize_title_with_dashes( $_POST['whl_redirect_admin'] ) )
266
  && strpos( $whl_redirect_admin, '404' ) === false ) {
267
 
268
+ flush_rewrite_rules( true );
269
  update_site_option( 'whl_redirect_admin', $whl_redirect_admin );
 
270
 
271
  }
272
  }
readme.txt CHANGED
@@ -6,7 +6,7 @@ Tags: rename, login, wp-login, wp-login.php, custom login url, jetpack, wpserveu
6
  Requires at least: 4.1
7
  Tested up to: 5.7
8
  Requires PHP: 7.0
9
- Stable tag: 1.8.4
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -148,6 +148,9 @@ La première étape consiste à vérifier votre fichier .htaccess et à le compa
148
 
149
  == Changelog ==
150
 
 
 
 
151
  = 1.8.4 =
152
  * Tested up to 5.7
153
 
6
  Requires at least: 4.1
7
  Tested up to: 5.7
8
  Requires PHP: 7.0
9
+ Stable tag: 1.8.5
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
148
 
149
  == Changelog ==
150
 
151
+ = 1.8.5 =
152
+ * Fix : Force refresh permalinks update option 'whl_page'
153
+
154
  = 1.8.4 =
155
  * Tested up to 5.7
156
 
wps-hide-login.php CHANGED
@@ -5,7 +5,7 @@ Description: Protect your website by changing the login URL and preventing acces
5
  Donate link: https://www.paypal.me/donateWPServeur
6
  Author: WPServeur, NicolasKulka, wpformation
7
  Author URI: https://wpserveur.net
8
- Version: 1.8.4
9
  Requires at least: 4.1
10
  Tested up to: 5.7
11
  Requires PHP: 7.0
@@ -21,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) {
21
  }
22
 
23
  // Plugin constants
24
- define( 'WPS_HIDE_LOGIN_VERSION', '1.8.4' );
25
  define( 'WPS_HIDE_LOGIN_FOLDER', 'wps-hide-login' );
26
 
27
  define( 'WPS_HIDE_LOGIN_URL', plugin_dir_url( __FILE__ ) );
5
  Donate link: https://www.paypal.me/donateWPServeur
6
  Author: WPServeur, NicolasKulka, wpformation
7
  Author URI: https://wpserveur.net
8
+ Version: 1.8.5
9
  Requires at least: 4.1
10
  Tested up to: 5.7
11
  Requires PHP: 7.0
21
  }
22
 
23
  // Plugin constants
24
+ define( 'WPS_HIDE_LOGIN_VERSION', '1.8.5' );
25
  define( 'WPS_HIDE_LOGIN_FOLDER', 'wps-hide-login' );
26
 
27
  define( 'WPS_HIDE_LOGIN_URL', plugin_dir_url( __FILE__ ) );