WPS Hide Login - Version 1.5.7

Version Description

  • Fix : Text Domain Issue
Download this release

Release Info

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

Code changes from version 1.5.6 to 1.5.7

classes/plugin.php CHANGED
@@ -170,13 +170,13 @@ class Plugin {
170
 
171
  public function admin_notices_incompatible() {
172
 
173
- echo '<div class="error notice is-dismissible"><p>' . __( 'Please upgrade to the latest version of WordPress to activate', 'wpserveur-hide-login' ) . ' <strong>' . __( 'WPS Hide Login', 'wpserveur-hide-login' ) . '</strong>.</p></div>';
174
 
175
  }
176
 
177
  public function admin_notices_plugin_conflict() {
178
 
179
- echo '<div class="error notice is-dismissible"><p>' . __( 'WPS Hide Login could not be activated because you already have Rename wp-login.php active. Please uninstall rename wp-login.php to use WPS Hide Login', 'wpserveur-hide-login' ) . '</p></div>';
180
 
181
  }
182
 
@@ -193,14 +193,14 @@ class Plugin {
193
 
194
  $out = '';
195
 
196
- $out .= '<h3>' . __( 'WPS Hide Login', 'wpserveur-hide-login' ) . '</h3>';
197
- $out .= '<p>' . __( 'This option allows you to set a networkwide default, which can be overridden by individual sites. Simply go to to the site’s permalink settings to change the url.', 'wpserveur-hide-login' ) . '</p>';
198
- $out .= '<p>' . sprintf( __( 'Need help? Try the <a href="%1$s" target="_blank">support forum</a>. This plugin is kindly brought to you by <a href="%2$s" target="_blank">WPServeur</a>', 'wpserveur-hide-login' ), 'http://wordpress.org/support/plugin/wps-hide-login/', 'https://www.wpserveur.net/?refwps=14&campaign=wpshidelogin' ) . '</p>';
199
  $out .= '<table class="form-table">';
200
  $out .= '<tr valign="top">';
201
- $out .= '<th scope="row"><label for="whl_page">' . __( 'Networkwide default', 'wpserveur-hide-login' ) . '</label></th>';
202
  $out .= '<td><input id="whl_page" type="text" name="whl_page" value="' . esc_attr( get_site_option( 'whl_page', 'login' ) ) . '"></td>';
203
- $out .= '<th scope="row"><label for="whl_redirect_admin">' . __( 'Redirection url default', 'wpserveur-hide-login' ) . '</label></th>';
204
  $out .= '<td><input id="whl_redirect_admin" type="text" name="whl_redirect_admin" value="' . esc_attr( get_site_option( 'whl_redirect_admin', '404' ) ) . '"></td>';
205
  $out .= '</tr>';
206
  $out .= '</table>';
@@ -242,7 +242,7 @@ class Plugin {
242
 
243
  add_settings_field(
244
  'whl_page',
245
- '<label for="whl_page">' . __( 'Login url', 'wpserveur-hide-login' ) . '</label>',
246
  array( $this, 'whl_page_input' ),
247
  'general',
248
  'wps-hide-login-section'
@@ -250,7 +250,7 @@ class Plugin {
250
 
251
  add_settings_field(
252
  'whl_redirect_admin',
253
- '<label for="whl_redirect_admin">' . __( 'Redirection url', 'wpserveur-hide-login' ) . '</label>',
254
  array( $this, 'whl_redirect_admin_input' ),
255
  'general',
256
  'wps-hide-login-section'
@@ -323,11 +323,11 @@ class Plugin {
323
  );
324
 
325
  $out .= '<div id="whl_settings">';
326
- $out .= sprintf( __( 'Need help? Try the <a href="%1$s" target="_blank">support forum</a>. This plugin is kindly brought to you by <a href="%2$s" target="_blank">WPServeur</a>', 'wpserveur-hide-login' ), 'http://wordpress.org/support/plugin/wps-hide-login/', 'https://www.wpserveur.net/?refwps=14&campaign=wpshidelogin' ) . ' (' . __( 'WordPress specialized hosting', 'wpserveur-hide-login' ) . ')';
327
- $out .= '<br>' . __( 'Discover our other plugins:', 'wpserveur-hide-login' ) . ' ';
328
- $out .= __( 'the plugin', 'wpserveur-hide-login' ) . ' <a href="' . $details_url_wpsbidouille . '" class="thickbox open-plugin-details-modal">' . __( 'WPS Bidouille', 'wpserveur-hide-login' ) . '</a>';
329
- $out .= ', ' . __( 'the plugin', 'wpserveur-hide-login' ) . ' <a href="' . $details_url_wpscleaner . '" class="thickbox open-plugin-details-modal">' . __( 'WPS Cleaner', 'wpserveur-hide-login' ) . '</a>';
330
- $out .= ' ' . __( 'and', 'wpserveur-hide-login' ) . ' <a href="' . $details_url_wpslimitlogin . '" class="thickbox open-plugin-details-modal">' . __( 'WPS Limit Login', 'wpserveur-hide-login' ) . '</a>';
331
  $out .= '</div>';
332
 
333
  }
@@ -336,7 +336,7 @@ class Plugin {
336
  && is_super_admin()
337
  && is_plugin_active_for_network( WPS_HIDE_LOGIN_BASENAME ) ) {
338
 
339
- $out .= '<p>' . sprintf( __( 'To set a networkwide default, go to <a href="%s">Network Settings</a>.', 'wpserveur-hide-login' ), network_admin_url( 'settings.php#whl_settings' ) ) . '</p>';
340
 
341
  }
342
 
@@ -356,7 +356,7 @@ class Plugin {
356
 
357
  }
358
 
359
- echo '<p class="description">' . __( 'Protect your website by changing the login URL and preventing access to the wp-login.php page and the wp-admin directory to non-connected people.', 'wpserveur-hide-login' ) . '</p>';
360
 
361
  }
362
 
@@ -371,7 +371,7 @@ class Plugin {
371
 
372
  }
373
 
374
- echo '<p class="description">' . __( 'Redirect URL when someone tries to access the wp-login.php page and the wp-admin directory while not logged in.', 'wpserveur-hide-login' ) . '</p>';
375
  }
376
 
377
  public function admin_notices() {
@@ -385,7 +385,7 @@ class Plugin {
385
  && isset( $_GET['settings-updated'] )
386
  && ! isset( $_GET['page'] ) ) {
387
 
388
- echo '<div class="updated notice is-dismissible"><p>' . sprintf( __( 'Your login page is now here: <strong><a href="%1$s">%2$s</a></strong>. Bookmark this page!', 'wpserveur-hide-login' ), $this->new_login_url(), $this->new_login_url() ) . '</p></div>';
389
 
390
  }
391
 
@@ -396,11 +396,11 @@ class Plugin {
396
  if ( is_network_admin()
397
  && is_plugin_active_for_network( WPS_HIDE_LOGIN_BASENAME ) ) {
398
 
399
- array_unshift( $links, '<a href="' . network_admin_url( 'settings.php#whl_settings' ) . '">' . __( 'Settings', 'wpserveur-hide-login' ) . '</a>' );
400
 
401
  } elseif ( ! is_network_admin() ) {
402
 
403
- array_unshift( $links, '<a href="' . admin_url( 'options-general.php#whl_settings' ) . '">' . __( 'Settings', 'wpserveur-hide-login' ) . '</a>' );
404
 
405
  }
406
 
@@ -433,7 +433,7 @@ class Plugin {
433
  && ( strpos( rawurldecode( $_SERVER['REQUEST_URI'] ) , 'wp-signup' ) !== false
434
  || strpos( rawurldecode( $_SERVER['REQUEST_URI'] ), 'wp-activate' ) !== false ) && apply_filters( 'wps_hide_login_signup_enable', false ) === false ) {
435
 
436
- wp_die( __( 'This feature is not enabled.', 'wpserveur-hide-login' ) );
437
 
438
  }
439
 
@@ -473,7 +473,7 @@ class Plugin {
473
  global $pagenow;
474
 
475
  if ( ! is_user_logged_in() && 'customize.php' === $pagenow ) {
476
- wp_die( __( 'This has been disabled', 'wpserveur-hide-login' ), 403 );
477
  }
478
  }
479
 
170
 
171
  public function admin_notices_incompatible() {
172
 
173
+ echo '<div class="error notice is-dismissible"><p>' . __( 'Please upgrade to the latest version of WordPress to activate', 'wps-hide-login' ) . ' <strong>' . __( 'WPS Hide Login', 'wps-hide-login' ) . '</strong>.</p></div>';
174
 
175
  }
176
 
177
  public function admin_notices_plugin_conflict() {
178
 
179
+ echo '<div class="error notice is-dismissible"><p>' . __( 'WPS Hide Login could not be activated because you already have Rename wp-login.php active. Please uninstall rename wp-login.php to use WPS Hide Login', 'wps-hide-login' ) . '</p></div>';
180
 
181
  }
182
 
193
 
194
  $out = '';
195
 
196
+ $out .= '<h3>' . __( 'WPS Hide Login', 'wps-hide-login' ) . '</h3>';
197
+ $out .= '<p>' . __( 'This option allows you to set a networkwide default, which can be overridden by individual sites. Simply go to to the site’s permalink settings to change the url.', 'wps-hide-login' ) . '</p>';
198
+ $out .= '<p>' . sprintf( __( 'Need help? Try the <a href="%1$s" target="_blank">support forum</a>. This plugin is kindly brought to you by <a href="%2$s" target="_blank">WPServeur</a>', 'wps-hide-login' ), 'http://wordpress.org/support/plugin/wps-hide-login/', 'https://www.wpserveur.net/?refwps=14&campaign=wpshidelogin' ) . '</p>';
199
  $out .= '<table class="form-table">';
200
  $out .= '<tr valign="top">';
201
+ $out .= '<th scope="row"><label for="whl_page">' . __( 'Networkwide default', 'wps-hide-login' ) . '</label></th>';
202
  $out .= '<td><input id="whl_page" type="text" name="whl_page" value="' . esc_attr( get_site_option( 'whl_page', 'login' ) ) . '"></td>';
203
+ $out .= '<th scope="row"><label for="whl_redirect_admin">' . __( 'Redirection url default', 'wps-hide-login' ) . '</label></th>';
204
  $out .= '<td><input id="whl_redirect_admin" type="text" name="whl_redirect_admin" value="' . esc_attr( get_site_option( 'whl_redirect_admin', '404' ) ) . '"></td>';
205
  $out .= '</tr>';
206
  $out .= '</table>';
242
 
243
  add_settings_field(
244
  'whl_page',
245
+ '<label for="whl_page">' . __( 'Login url', 'wps-hide-login' ) . '</label>',
246
  array( $this, 'whl_page_input' ),
247
  'general',
248
  'wps-hide-login-section'
250
 
251
  add_settings_field(
252
  'whl_redirect_admin',
253
+ '<label for="whl_redirect_admin">' . __( 'Redirection url', 'wps-hide-login' ) . '</label>',
254
  array( $this, 'whl_redirect_admin_input' ),
255
  'general',
256
  'wps-hide-login-section'
323
  );
324
 
325
  $out .= '<div id="whl_settings">';
326
+ $out .= sprintf( __( 'Need help? Try the <a href="%1$s" target="_blank">support forum</a>. This plugin is kindly brought to you by <a href="%2$s" target="_blank">WPServeur</a>', 'wps-hide-login' ), 'http://wordpress.org/support/plugin/wps-hide-login/', 'https://www.wpserveur.net/?refwps=14&campaign=wpshidelogin' ) . ' (' . __( 'WordPress specialized hosting', 'wps-hide-login' ) . ')';
327
+ $out .= '<br>' . __( 'Discover our other plugins:', 'wps-hide-login' ) . ' ';
328
+ $out .= __( 'the plugin', 'wps-hide-login' ) . ' <a href="' . $details_url_wpsbidouille . '" class="thickbox open-plugin-details-modal">' . __( 'WPS Bidouille', 'wps-hide-login' ) . '</a>';
329
+ $out .= ', ' . __( 'the plugin', 'wps-hide-login' ) . ' <a href="' . $details_url_wpscleaner . '" class="thickbox open-plugin-details-modal">' . __( 'WPS Cleaner', 'wps-hide-login' ) . '</a>';
330
+ $out .= ' ' . __( 'and', 'wps-hide-login' ) . ' <a href="' . $details_url_wpslimitlogin . '" class="thickbox open-plugin-details-modal">' . __( 'WPS Limit Login', 'wps-hide-login' ) . '</a>';
331
  $out .= '</div>';
332
 
333
  }
336
  && is_super_admin()
337
  && is_plugin_active_for_network( WPS_HIDE_LOGIN_BASENAME ) ) {
338
 
339
+ $out .= '<p>' . sprintf( __( 'To set a networkwide default, go to <a href="%s">Network Settings</a>.', 'wps-hide-login' ), network_admin_url( 'settings.php#whl_settings' ) ) . '</p>';
340
 
341
  }
342
 
356
 
357
  }
358
 
359
+ echo '<p class="description">' . __( 'Protect your website by changing the login URL and preventing access to the wp-login.php page and the wp-admin directory to non-connected people.', 'wps-hide-login' ) . '</p>';
360
 
361
  }
362
 
371
 
372
  }
373
 
374
+ echo '<p class="description">' . __( 'Redirect URL when someone tries to access the wp-login.php page and the wp-admin directory while not logged in.', 'wps-hide-login' ) . '</p>';
375
  }
376
 
377
  public function admin_notices() {
385
  && isset( $_GET['settings-updated'] )
386
  && ! isset( $_GET['page'] ) ) {
387
 
388
+ echo '<div class="updated notice is-dismissible"><p>' . sprintf( __( 'Your login page is now here: <strong><a href="%1$s">%2$s</a></strong>. Bookmark this page!', 'wps-hide-login' ), $this->new_login_url(), $this->new_login_url() ) . '</p></div>';
389
 
390
  }
391
 
396
  if ( is_network_admin()
397
  && is_plugin_active_for_network( WPS_HIDE_LOGIN_BASENAME ) ) {
398
 
399
+ array_unshift( $links, '<a href="' . network_admin_url( 'settings.php#whl_settings' ) . '">' . __( 'Settings', 'wps-hide-login' ) . '</a>' );
400
 
401
  } elseif ( ! is_network_admin() ) {
402
 
403
+ array_unshift( $links, '<a href="' . admin_url( 'options-general.php#whl_settings' ) . '">' . __( 'Settings', 'wps-hide-login' ) . '</a>' );
404
 
405
  }
406
 
433
  && ( strpos( rawurldecode( $_SERVER['REQUEST_URI'] ) , 'wp-signup' ) !== false
434
  || strpos( rawurldecode( $_SERVER['REQUEST_URI'] ), 'wp-activate' ) !== false ) && apply_filters( 'wps_hide_login_signup_enable', false ) === false ) {
435
 
436
+ wp_die( __( 'This feature is not enabled.', 'wps-hide-login' ) );
437
 
438
  }
439
 
473
  global $pagenow;
474
 
475
  if ( ! is_user_logged_in() && 'customize.php' === $pagenow ) {
476
+ wp_die( __( 'This has been disabled', 'wps-hide-login' ), 403 );
477
  }
478
  }
479
 
languages/{wpserveur-hide-login-cs_CZ.mo → wps-hide-login-cs_CZ.mo} RENAMED
File without changes
languages/{wpserveur-hide-login-cs_CZ.po → wps-hide-login-cs_CZ.po} RENAMED
File without changes
languages/{wpserveur-hide-login-da_DK.mo → wps-hide-login-da_DK.mo} RENAMED
File without changes
languages/{wpserveur-hide-login-da_DK.po → wps-hide-login-da_DK.po} RENAMED
File without changes
languages/{wpserveur-hide-login-es_ES.mo → wps-hide-login-es_ES.mo} RENAMED
File without changes
languages/{wpserveur-hide-login-es_ES.po → wps-hide-login-es_ES.po} RENAMED
File without changes
languages/{wpserveur-hide-login-fr_FR.mo → wps-hide-login-fr_FR.mo} RENAMED
File without changes
languages/{wpserveur-hide-login-fr_FR.po → wps-hide-login-fr_FR.po} RENAMED
File without changes
languages/{wpserveur-hide-login-it_IT.mo → wps-hide-login-it_IT.mo} RENAMED
File without changes
languages/{wpserveur-hide-login-it_IT.po → wps-hide-login-it_IT.po} RENAMED
File without changes
languages/{wpserveur-hide-login-ru_RU.mo → wps-hide-login-ru_RU.mo} RENAMED
File without changes
languages/{wpserveur-hide-login-ru_RU.po → wps-hide-login-ru_RU.po} RENAMED
File without changes
languages/{wpserveur-hide-login.pot → wps-hide-login.pot} RENAMED
File without changes
readme.txt CHANGED
@@ -1,12 +1,12 @@
1
  === WPS Hide Login ===
2
 
3
- 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.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
 
@@ -33,6 +33,8 @@ This plugin is only maintained, which means we do not guarantee free support. Co
33
 
34
  Ce plugin vous est gentiment proposé par <a href="https://www.wpserveur.net/?refwps=14&campaign=wpshidelogin" target="_blank">WPServeur</a> l'hébergeur spécialisé WordPress.
35
 
 
 
36
  Découvrez également nos autres extensions gratuites :
37
  - <a href="https://fr.wordpress.org/plugins/wps-limit-login/" target="_blank">WPS Limit Login</a> pour bloquer les attaques par force brute.
38
  - <a href="https://fr.wordpress.org/plugins/wps-bidouille/" target="_blank">WPS Bidouille</a> pour optimiser votre WordPress et faire le plein d'infos.
@@ -146,6 +148,9 @@ La première étape consiste à vérifier votre fichier .htaccess et à le compa
146
 
147
  == Changelog ==
148
 
 
 
 
149
  = 1.5.6 =
150
  * Fix : flush rewrite rules after install or update option
151
  * Tested up to 5.4
1
  === WPS Hide Login ===
2
 
3
+ Contributors: WPServeur, NicolasKulka, wpformation
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.5
8
  Requires PHP: 7.0
9
+ Stable tag: 1.5.7
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
33
 
34
  Ce plugin vous est gentiment proposé par <a href="https://www.wpserveur.net/?refwps=14&campaign=wpshidelogin" target="_blank">WPServeur</a> l'hébergeur spécialisé WordPress.
35
 
36
+ Plus d'infos sur son utilisation : <a href="https://wpformation.com/wps-hide-login-url-connexion-wordpress/" target="_blank">https://wpformation.com/wps-hide-login-url-connexion-wordpress/</a>
37
+
38
  Découvrez également nos autres extensions gratuites :
39
  - <a href="https://fr.wordpress.org/plugins/wps-limit-login/" target="_blank">WPS Limit Login</a> pour bloquer les attaques par force brute.
40
  - <a href="https://fr.wordpress.org/plugins/wps-bidouille/" target="_blank">WPS Bidouille</a> pour optimiser votre WordPress et faire le plein d'infos.
148
 
149
  == Changelog ==
150
 
151
+ = 1.5.7 =
152
+ * Fix : Text Domain Issue
153
+
154
  = 1.5.6 =
155
  * Fix : flush rewrite rules after install or update option
156
  * Tested up to 5.4
wps-hide-login.php CHANGED
@@ -3,14 +3,14 @@
3
  Plugin Name: WPS Hide Login
4
  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
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
14
  License: GPLv2 or later
15
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
16
  */
@@ -21,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) {
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__ ) );
@@ -36,9 +36,9 @@ add_action( 'plugins_loaded', 'plugins_loaded_wps_hide_login_plugin' );
36
  function plugins_loaded_wps_hide_login_plugin() {
37
  \WPS\WPS_Hide_Login\Plugin::get_instance();
38
 
39
- load_plugin_textdomain( 'wpserveur-hide-login', false, dirname( WPS_HIDE_LOGIN_BASENAME ) . '/languages' );
40
 
41
- $message = __( 'Do you like plugin WPS Hide Login? <br> Thank you for taking a few seconds to note us on', 'wpserveur-hide-login' );
42
  if( 'fr_FR' === get_locale() ) {
43
  $message = 'Vous aimez l\'extension WPS Hide Login ?<br>Merci de prendre quelques secondes pour nous noter sur';
44
  }
3
  Plugin Name: WPS Hide Login
4
  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
5
  Donate link: https://www.paypal.me/donateWPServeur
6
+ Author: WPServeur, NicolasKulka, wpformation
7
  Author URI: https://wpserveur.net
8
+ Version: 1.5.7
9
  Requires at least: 4.1
10
+ Tested up to: 5.5
11
  Requires PHP: 7.0
12
  Domain Path: languages
13
+ Text Domain: wps-hide-login
14
  License: GPLv2 or later
15
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
16
  */
21
  }
22
 
23
  // Plugin constants
24
+ define( 'WPS_HIDE_LOGIN_VERSION', '1.5.7' );
25
  define( 'WPS_HIDE_LOGIN_FOLDER', 'wps-hide-login' );
26
 
27
  define( 'WPS_HIDE_LOGIN_URL', plugin_dir_url( __FILE__ ) );
36
  function plugins_loaded_wps_hide_login_plugin() {
37
  \WPS\WPS_Hide_Login\Plugin::get_instance();
38
 
39
+ load_plugin_textdomain( 'wps-hide-login', false, dirname( WPS_HIDE_LOGIN_BASENAME ) . '/languages' );
40
 
41
+ $message = __( 'Do you like plugin WPS Hide Login? <br> Thank you for taking a few seconds to note us on', 'wps-hide-login' );
42
  if( 'fr_FR' === get_locale() ) {
43
  $message = 'Vous aimez l\'extension WPS Hide Login ?<br>Merci de prendre quelques secondes pour nous noter sur';
44
  }