WPS Hide Login - Version 1.5.6

Version Description

  • Fix : flush rewrite rules after install or update option
  • Tested up to 5.4
Download this release

Release Info

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

Code changes from version 1.5.5 to 1.5.6

Files changed (4) hide show
  1. classes/plugin.php +2 -0
  2. readme.txt +7 -3
  3. uninstall.php +6 -0
  4. wps-hide-login.php +3 -3
classes/plugin.php CHANGED
@@ -216,12 +216,14 @@ class Plugin {
216
  && ! in_array( $whl_page, $this->forbidden_slugs() ) ) {
217
 
218
  update_site_option( 'whl_page', $whl_page );
 
219
 
220
  }
221
  if ( ( $whl_redirect_admin = sanitize_title_with_dashes( $_POST['whl_redirect_admin'] ) )
222
  && strpos( $whl_redirect_admin, '404' ) === false ) {
223
 
224
  update_site_option( 'whl_redirect_admin', $whl_redirect_admin );
 
225
 
226
  }
227
  }
216
  && ! in_array( $whl_page, $this->forbidden_slugs() ) ) {
217
 
218
  update_site_option( 'whl_page', $whl_page );
219
+ flush_rewrite_rules();
220
 
221
  }
222
  if ( ( $whl_redirect_admin = sanitize_title_with_dashes( $_POST['whl_redirect_admin'] ) )
223
  && strpos( $whl_redirect_admin, '404' ) === false ) {
224
 
225
  update_site_option( 'whl_redirect_admin', $whl_redirect_admin );
226
+ flush_rewrite_rules();
227
 
228
  }
229
  }
readme.txt CHANGED
@@ -4,9 +4,9 @@ Contributors: tabrisrp, WPServeur, nicolaskulka
4
  Donate link : https://www.paypal.me/donateWPServeur
5
  Tags: rename, login, wp-login, wp-login.php, custom login url, jetpack, wpserveur
6
  Requires at least: 4.1
7
- Tested up to: 5.3
8
  Requires PHP: 7.0
9
- Stable tag: 1.5.5
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -146,9 +146,13 @@ La première étape consiste à vérifier votre fichier .htaccess et à le compa
146
 
147
  == Changelog ==
148
 
 
 
 
 
149
  = 1.5.5 =
150
  * Add filter to redirect in cases where the user is already logged in.
151
- * Fix : add rawurldecode for all $_SERVER['REQUEST_URI'] (Thanks NinTechNet)
152
 
153
  = 1.5.4.2 =
154
  * Revert to code in tag 1.5.3
4
  Donate link : https://www.paypal.me/donateWPServeur
5
  Tags: rename, login, wp-login, wp-login.php, custom login url, jetpack, wpserveur
6
  Requires at least: 4.1
7
+ Tested up to: 5.4
8
  Requires PHP: 7.0
9
+ Stable tag: 1.5.6
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
146
 
147
  == Changelog ==
148
 
149
+ = 1.5.6 =
150
+ * Fix : flush rewrite rules after install or update option
151
+ * Tested up to 5.4
152
+
153
  = 1.5.5 =
154
  * Add filter to redirect in cases where the user is already logged in.
155
+ * Fix : add rawurldecode for all $_SERVER['REQUEST_URI'] (Thanks @nintechnet)
156
 
157
  = 1.5.4.2 =
158
  * Revert to code in tag 1.5.3
uninstall.php CHANGED
@@ -22,6 +22,8 @@ if ( is_multisite() ) {
22
  delete_site_option( 'whl_page' );
23
  delete_site_option( 'whl_redirect_admin' );
24
 
 
 
25
  if ( $blogs ) {
26
 
27
  foreach ( $blogs as $blog ) {
@@ -29,6 +31,8 @@ if ( is_multisite() ) {
29
  delete_option( 'whl_page' );
30
  delete_option( 'whl_redirect_admin' );
31
 
 
 
32
  //info: optimize table
33
  $GLOBALS['wpdb']->query( "OPTIMIZE TABLE `" . $GLOBALS['wpdb']->prefix . "options`" );
34
  restore_current_blog();
@@ -39,6 +43,8 @@ if ( is_multisite() ) {
39
  delete_option( 'whl_page' );
40
  delete_option( 'whl_redirect_admin' );
41
 
 
 
42
  //info: optimize table
43
  $GLOBALS['wpdb']->query( "OPTIMIZE TABLE `" . $GLOBALS['wpdb']->prefix . "options`" );
44
  }
22
  delete_site_option( 'whl_page' );
23
  delete_site_option( 'whl_redirect_admin' );
24
 
25
+ flush_rewrite_rules();
26
+
27
  if ( $blogs ) {
28
 
29
  foreach ( $blogs as $blog ) {
31
  delete_option( 'whl_page' );
32
  delete_option( 'whl_redirect_admin' );
33
 
34
+ flush_rewrite_rules();
35
+
36
  //info: optimize table
37
  $GLOBALS['wpdb']->query( "OPTIMIZE TABLE `" . $GLOBALS['wpdb']->prefix . "options`" );
38
  restore_current_blog();
43
  delete_option( 'whl_page' );
44
  delete_option( 'whl_redirect_admin' );
45
 
46
+ flush_rewrite_rules();
47
+
48
  //info: optimize table
49
  $GLOBALS['wpdb']->query( "OPTIMIZE TABLE `" . $GLOBALS['wpdb']->prefix . "options`" );
50
  }
wps-hide-login.php CHANGED
@@ -5,9 +5,9 @@ Description: Protect your website by changing the login URL and preventing acces
5
  Donate link: https://www.paypal.me/donateWPServeur
6
  Author: WPServeur, NicolasKulka, tabrisrp
7
  Author URI: https://wpserveur.net
8
- Version: 1.5.5
9
  Requires at least: 4.1
10
- Tested up to: 5.2
11
  Requires PHP: 7.0
12
  Domain Path: languages
13
  Text Domain: wpserveur-hide-login
@@ -21,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) {
21
  }
22
 
23
  // Plugin constants
24
- define( 'WPS_HIDE_LOGIN_VERSION', '1.5.5' );
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, tabrisrp
7
  Author URI: https://wpserveur.net
8
+ Version: 1.5.6
9
  Requires at least: 4.1
10
+ Tested up to: 5.4
11
  Requires PHP: 7.0
12
  Domain Path: languages
13
  Text Domain: wpserveur-hide-login
21
  }
22
 
23
  // Plugin constants
24
+ define( 'WPS_HIDE_LOGIN_VERSION', '1.5.6' );
25
  define( 'WPS_HIDE_LOGIN_FOLDER', 'wps-hide-login' );
26
 
27
  define( 'WPS_HIDE_LOGIN_URL', plugin_dir_url( __FILE__ ) );