WPS Hide Login - Version 1.5

Version Description

  • Enhancement: Add custom redirection URL
Download this release

Release Info

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

Code changes from version 1.4.5 to 1.5

classes/plugin.php CHANGED
@@ -126,6 +126,16 @@ class Plugin {
126
  }
127
  }
128
 
 
 
 
 
 
 
 
 
 
 
129
  public function new_login_url( $scheme = null ) {
130
 
131
  if ( get_option( 'permalink_structure' ) ) {
@@ -140,6 +150,20 @@ class Plugin {
140
 
141
  }
142
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143
  public function admin_notices_incompatible() {
144
 
145
  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>';
@@ -172,6 +196,8 @@ class Plugin {
172
  $out .= '<tr valign="top">';
173
  $out .= '<th scope="row"><label for="whl_page">' . __( 'Networkwide default', 'wpserveur-hide-login' ) . '</label></th>';
174
  $out .= '<td><input id="whl_page" type="text" name="whl_page" value="' . esc_attr( get_site_option( 'whl_page', 'login' ) ) . '"></td>';
 
 
175
  $out .= '</tr>';
176
  $out .= '</table>';
177
 
@@ -188,6 +214,12 @@ class Plugin {
188
  update_site_option( 'whl_page', $whl_page );
189
 
190
  }
 
 
 
 
 
 
191
  }
192
  }
193
 
@@ -210,7 +242,16 @@ class Plugin {
210
  'wps-hide-login-section'
211
  );
212
 
 
 
 
 
 
 
 
 
213
  register_setting( 'general', 'whl_page', 'sanitize_title_with_dashes' );
 
214
 
215
  if ( get_option( 'whl_redirect' ) ) {
216
 
@@ -313,6 +354,20 @@ class Plugin {
313
 
314
  }
315
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
316
  public function admin_notices() {
317
 
318
  global $pagenow;
@@ -406,7 +461,7 @@ class Plugin {
406
  $request = parse_url( $_SERVER['REQUEST_URI'] );
407
 
408
  if ( is_admin() && ! is_user_logged_in() && ! defined( 'DOING_AJAX' ) && $pagenow !== 'admin-post.php' && ( isset( $_GET ) && empty( $_GET['adminhash'] ) && $request['path'] !== '/wp-admin/options.php' ) ) {
409
- wp_safe_redirect( home_url( '/404' ) );
410
  die();
411
  }
412
 
126
  }
127
  }
128
 
129
+ private function new_redirect_slug() {
130
+ if ( $slug = get_option( 'whl_redirect_admin' ) ) {
131
+ return $slug;
132
+ } else if ( ( is_multisite() && is_plugin_active_for_network( WPS_HIDE_LOGIN_BASENAME ) && ( $slug = get_site_option( 'whl_redirect_admin', '404' ) ) ) ) {
133
+ return $slug;
134
+ } else if ( $slug = '404' ) {
135
+ return $slug;
136
+ }
137
+ }
138
+
139
  public function new_login_url( $scheme = null ) {
140
 
141
  if ( get_option( 'permalink_structure' ) ) {
150
 
151
  }
152
 
153
+ public function new_redirect_url( $scheme = null ) {
154
+
155
+ if ( get_option( 'permalink_structure' ) ) {
156
+
157
+ return $this->user_trailingslashit( home_url( '/', $scheme ) . $this->new_redirect_slug() );
158
+
159
+ } else {
160
+
161
+ return home_url( '/', $scheme ) . '?' . $this->new_redirect_slug();
162
+
163
+ }
164
+
165
+ }
166
+
167
  public function admin_notices_incompatible() {
168
 
169
  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>';
196
  $out .= '<tr valign="top">';
197
  $out .= '<th scope="row"><label for="whl_page">' . __( 'Networkwide default', 'wpserveur-hide-login' ) . '</label></th>';
198
  $out .= '<td><input id="whl_page" type="text" name="whl_page" value="' . esc_attr( get_site_option( 'whl_page', 'login' ) ) . '"></td>';
199
+ $out .= '<th scope="row"><label for="whl_redirect_admin">' . __( 'Redirection url default', 'wpserveur-hide-login' ) . '</label></th>';
200
+ $out .= '<td><input id="whl_redirect_admin" type="text" name="whl_redirect_admin" value="' . esc_attr( get_site_option( 'whl_redirect_admin', '404' ) ) . '"></td>';
201
  $out .= '</tr>';
202
  $out .= '</table>';
203
 
214
  update_site_option( 'whl_page', $whl_page );
215
 
216
  }
217
+ if ( ( $whl_redirect_admin = sanitize_title_with_dashes( $_POST['whl_redirect_admin'] ) )
218
+ && strpos( $whl_redirect_admin, '404' ) === false ) {
219
+
220
+ update_site_option( 'whl_redirect_admin', $whl_redirect_admin );
221
+
222
+ }
223
  }
224
  }
225
 
242
  'wps-hide-login-section'
243
  );
244
 
245
+ add_settings_field(
246
+ 'whl_redirect_admin',
247
+ '<label for="whl_redirect_admin">' . __( 'Redirection url', 'wpserveur-hide-login' ) . '</label>',
248
+ array( $this, 'whl_redirect_admin_input' ),
249
+ 'general',
250
+ 'wps-hide-login-section'
251
+ );
252
+
253
  register_setting( 'general', 'whl_page', 'sanitize_title_with_dashes' );
254
+ register_setting( 'general', 'whl_redirect_admin', 'sanitize_title_with_dashes' );
255
 
256
  if ( get_option( 'whl_redirect' ) ) {
257
 
354
 
355
  }
356
 
357
+ public function whl_redirect_admin_input() {
358
+ if ( get_option( 'permalink_structure' ) ) {
359
+
360
+ echo '<code>' . trailingslashit( home_url() ) . '</code> <input id="whl_redirect_admin" type="text" name="whl_redirect_admin" value="' . $this->new_redirect_slug() . '">' . ( $this->use_trailing_slashes() ? ' <code>/</code>' : '' );
361
+
362
+ } else {
363
+
364
+ echo '<code>' . trailingslashit( home_url() ) . '?</code> <input id="whl_redirect_admin" type="text" name="whl_redirect_admin" value="' . $this->new_redirect_slug() . '">';
365
+
366
+ }
367
+
368
+ 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>';
369
+ }
370
+
371
  public function admin_notices() {
372
 
373
  global $pagenow;
461
  $request = parse_url( $_SERVER['REQUEST_URI'] );
462
 
463
  if ( is_admin() && ! is_user_logged_in() && ! defined( 'DOING_AJAX' ) && $pagenow !== 'admin-post.php' && ( isset( $_GET ) && empty( $_GET['adminhash'] ) && $request['path'] !== '/wp-admin/options.php' ) ) {
464
+ wp_safe_redirect( $this->new_redirect_url() );
465
  die();
466
  }
467
 
index.php DELETED
@@ -1 +0,0 @@
1
- <?php // Silence is golden
 
languages/wpserveur-hide-login-fr_FR.mo CHANGED
Binary file
languages/wpserveur-hide-login-fr_FR.po CHANGED
@@ -3,8 +3,8 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Plugins - WPS Hide Login - Stable (latest release)\n"
6
- "POT-Creation-Date: 2018-03-06 10:48+0100\n"
7
- "PO-Revision-Date: 2018-03-06 10:48+0100\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
10
  "Language: fr\n"
@@ -14,17 +14,17 @@ msgstr ""
14
  "Plural-Forms: nplurals=2; plural=n > 1;\n"
15
  "X-Generator: Poedit 1.8.12\n"
16
 
17
- #: classes/plugin.php:164
18
  msgid "Please upgrade to the latest version of WordPress to activate"
19
  msgstr "Veuillez mettre à jour WordPress dans sa dernière version pour activer"
20
 
21
  #. Plugin Name of the plugin/theme
22
- #: classes/plugin.php:164 classes/plugin.php:184 classes/plugin.php:540
23
- #: classes/plugin.php:549
24
  msgid "WPS Hide Login"
25
  msgstr "WPS Hide Login"
26
 
27
- #: classes/plugin.php:170
28
  msgid ""
29
  "WPS Hide Login could not be activated because you already have Rename wp-"
30
  "login.php active. Please uninstall rename wp-login.php to use WPS Hide Login"
@@ -33,7 +33,7 @@ msgstr ""
33
  "activé. Veuillez désinstaller Rename wp-login.php pour pouvoir utiliser WPS "
34
  "Hide Login."
35
 
36
- #: classes/plugin.php:185
37
  msgid ""
38
  "This option allows you to set a networkwide default, which can be overridden "
39
  "by individual sites. Simply go to to the site’s permalink settings to change "
@@ -43,7 +43,7 @@ msgstr ""
43
  "qui peut ensuite être remplacé pour chaque site individuellement. Allez "
44
  "simplement dans les réglages des permaliens du site pour modifier l’URL."
45
 
46
- #: classes/plugin.php:186 classes/plugin.php:285
47
  #, php-format
48
  msgid ""
49
  "Need help? Try the <a href=\"%1$s\" target=\"_blank\">support forum</a>. "
@@ -54,39 +54,51 @@ msgstr ""
54
  "support</a>. Cette extension vous est gentiment proposée par <a href=\"%2$s"
55
  "\" target=\"_blank\">WPServeur</a>"
56
 
57
- #: classes/plugin.php:189
58
  msgid "Networkwide default"
59
  msgstr "Réglage par défaut du réseau"
60
 
61
- #: classes/plugin.php:223
 
 
 
 
62
  msgid "Login url"
63
  msgstr "URL de connexion"
64
 
65
- #: classes/plugin.php:285
 
 
 
 
66
  msgid "WordPress specialized hosting"
67
  msgstr "Hébergement spécialisé WordPress"
68
 
69
- #: classes/plugin.php:286
70
  msgid "Discover our other plugins:"
71
  msgstr "Découvrez nos dernières créations,"
72
 
73
- #: classes/plugin.php:287
74
  msgid "the plugin"
75
  msgstr "le plugin"
76
 
77
- #: classes/plugin.php:287
78
  msgid "WPS Bidouille"
79
  msgstr "WPS Bidouille"
80
 
81
- #: classes/plugin.php:288
 
 
 
 
82
  msgid "and"
83
  msgstr "et"
84
 
85
- #: classes/plugin.php:288
86
  msgid "WPS Limit Login"
87
  msgstr "WPS Limit Login"
88
 
89
- #: classes/plugin.php:297
90
  #, php-format
91
  msgid ""
92
  "To set a networkwide default, go to <a href=\"%s\">Network Settings</a>."
@@ -94,7 +106,7 @@ msgstr ""
94
  "Pour définir un réglage par défaut pour le réseau, allez aux <a href=\"%s"
95
  "\">réglages du réseaux</a>."
96
 
97
- #: classes/plugin.php:317
98
  msgid ""
99
  "Protect your website by changing the login URL and preventing access to the "
100
  "wp-login.php page and the wp-admin directory to non-connected people."
@@ -103,7 +115,15 @@ msgstr ""
103
  "l’accès à la page wp-login.php et au répertoire wp-admin aux personnes non-"
104
  "connectées."
105
 
106
- #: classes/plugin.php:332
 
 
 
 
 
 
 
 
107
  #, php-format
108
  msgid ""
109
  "Your login page is now here: <strong><a href=\"%1$s\">%2$s</a></strong>. "
@@ -112,18 +132,54 @@ msgstr ""
112
  "Votre page de connexion est maintenant ici : <strong><a href=\"%1$s\">%2$s</"
113
  "a></strong>. Mettez-la en favori !"
114
 
115
- #: classes/plugin.php:343 classes/plugin.php:347
116
  msgid "Settings"
117
  msgstr "Réglages"
118
 
119
- #: classes/plugin.php:363
120
  msgid "This feature is not enabled."
121
  msgstr "Cette fonctionnalité n’est pas activée."
122
 
123
- #: classes/plugin.php:394
124
  msgid "This has been disabled"
125
  msgstr "Cela a été désactivé"
126
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127
  #. Description of the plugin/theme
128
  msgid ""
129
  "Protect your website by changing the login URL and preventing access to wp-"
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Plugins - WPS Hide Login - Stable (latest release)\n"
6
+ "POT-Creation-Date: 2018-11-13 11:42+0100\n"
7
+ "PO-Revision-Date: 2018-11-13 11:42+0100\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
10
  "Language: fr\n"
14
  "Plural-Forms: nplurals=2; plural=n > 1;\n"
15
  "X-Generator: Poedit 1.8.12\n"
16
 
17
+ #: classes/plugin.php:169
18
  msgid "Please upgrade to the latest version of WordPress to activate"
19
  msgstr "Veuillez mettre à jour WordPress dans sa dernière version pour activer"
20
 
21
  #. Plugin Name of the plugin/theme
22
+ #: classes/plugin.php:169 classes/plugin.php:192 classes/plugin.php:605
23
+ #: classes/plugin.php:614
24
  msgid "WPS Hide Login"
25
  msgstr "WPS Hide Login"
26
 
27
+ #: classes/plugin.php:175
28
  msgid ""
29
  "WPS Hide Login could not be activated because you already have Rename wp-"
30
  "login.php active. Please uninstall rename wp-login.php to use WPS Hide Login"
33
  "activé. Veuillez désinstaller Rename wp-login.php pour pouvoir utiliser WPS "
34
  "Hide Login."
35
 
36
+ #: classes/plugin.php:193
37
  msgid ""
38
  "This option allows you to set a networkwide default, which can be overridden "
39
  "by individual sites. Simply go to to the site’s permalink settings to change "
43
  "qui peut ensuite être remplacé pour chaque site individuellement. Allez "
44
  "simplement dans les réglages des permaliens du site pour modifier l’URL."
45
 
46
+ #: classes/plugin.php:194 classes/plugin.php:320
47
  #, php-format
48
  msgid ""
49
  "Need help? Try the <a href=\"%1$s\" target=\"_blank\">support forum</a>. "
54
  "support</a>. Cette extension vous est gentiment proposée par <a href=\"%2$s"
55
  "\" target=\"_blank\">WPServeur</a>"
56
 
57
+ #: classes/plugin.php:197
58
  msgid "Networkwide default"
59
  msgstr "Réglage par défaut du réseau"
60
 
61
+ #: classes/plugin.php:199
62
+ msgid "Redirection url default"
63
+ msgstr "URL de redirection par défaut"
64
+
65
+ #: classes/plugin.php:239
66
  msgid "Login url"
67
  msgstr "URL de connexion"
68
 
69
+ #: classes/plugin.php:247
70
+ msgid "Redirection url"
71
+ msgstr "URL de redirection"
72
+
73
+ #: classes/plugin.php:320
74
  msgid "WordPress specialized hosting"
75
  msgstr "Hébergement spécialisé WordPress"
76
 
77
+ #: classes/plugin.php:321
78
  msgid "Discover our other plugins:"
79
  msgstr "Découvrez nos dernières créations,"
80
 
81
+ #: classes/plugin.php:322 classes/plugin.php:323
82
  msgid "the plugin"
83
  msgstr "le plugin"
84
 
85
+ #: classes/plugin.php:322
86
  msgid "WPS Bidouille"
87
  msgstr "WPS Bidouille"
88
 
89
+ #: classes/plugin.php:323
90
+ msgid "WPS Cleaner"
91
+ msgstr "WPS Cleaner"
92
+
93
+ #: classes/plugin.php:324
94
  msgid "and"
95
  msgstr "et"
96
 
97
+ #: classes/plugin.php:324
98
  msgid "WPS Limit Login"
99
  msgstr "WPS Limit Login"
100
 
101
+ #: classes/plugin.php:333
102
  #, php-format
103
  msgid ""
104
  "To set a networkwide default, go to <a href=\"%s\">Network Settings</a>."
106
  "Pour définir un réglage par défaut pour le réseau, allez aux <a href=\"%s"
107
  "\">réglages du réseaux</a>."
108
 
109
+ #: classes/plugin.php:353
110
  msgid ""
111
  "Protect your website by changing the login URL and preventing access to the "
112
  "wp-login.php page and the wp-admin directory to non-connected people."
115
  "l’accès à la page wp-login.php et au répertoire wp-admin aux personnes non-"
116
  "connectées."
117
 
118
+ #: classes/plugin.php:368
119
+ msgid ""
120
+ "Redirect URL when someone tries to access the wp-login.php page and the wp-"
121
+ "admin directory while not logged in."
122
+ msgstr ""
123
+ "URL de redirection lorsqu'une personne tente d'accèder à la page wp-login."
124
+ "php et au répertoire wp-admin en étant non-connectée."
125
+
126
+ #: classes/plugin.php:382
127
  #, php-format
128
  msgid ""
129
  "Your login page is now here: <strong><a href=\"%1$s\">%2$s</a></strong>. "
132
  "Votre page de connexion est maintenant ici : <strong><a href=\"%1$s\">%2$s</"
133
  "a></strong>. Mettez-la en favori !"
134
 
135
+ #: classes/plugin.php:393 classes/plugin.php:397
136
  msgid "Settings"
137
  msgstr "Réglages"
138
 
139
+ #: classes/plugin.php:413
140
  msgid "This feature is not enabled."
141
  msgstr "Cette fonctionnalité n’est pas activée."
142
 
143
+ #: classes/plugin.php:453
144
  msgid "This has been disabled"
145
  msgstr "Cela a été désactivé"
146
 
147
+ #: vendor/NicolasKulka/wp-dismissible-notices-handler/handler.php:228
148
+ msgid "Dismissible Notices Handler Error:"
149
+ msgstr ""
150
+
151
+ #: vendor/NicolasKulka/wp-dismissible-notices-handler/handler.php:315
152
+ #, php-format
153
+ msgid "A notice with the ID %s has already been registered."
154
+ msgstr ""
155
+
156
+ #: vendor/NicolasKulka/wp-review-me/review.php:112
157
+ msgid ""
158
+ "Hey! It&#039;s been a little while that you&#039;ve been using this product. "
159
+ "You might not realize it, but user reviews are such a great help to us. We "
160
+ "would be so grateful if you could take a minute to leave a review on "
161
+ "WordPress.org. Many thanks in advance :)"
162
+ msgstr ""
163
+
164
+ #: vendor/NicolasKulka/wp-review-me/review.php:113
165
+ msgid "Click here to leave your review"
166
+ msgstr ""
167
+
168
+ #: vendor/NicolasKulka/wp-review-me/review.php:167
169
+ #, php-format
170
+ msgid "Dependencies are missing. Please run a %s."
171
+ msgstr ""
172
+
173
+ #: vendor/NicolasKulka/wp-review-me/review.php:228
174
+ msgid "WP Review Me Error:"
175
+ msgstr ""
176
+
177
+ #: wps-hide-login.php:41
178
+ msgid ""
179
+ "Do you like plugin WPS Hide Login? <br> Thank you for taking a few seconds "
180
+ "to note us on"
181
+ msgstr ""
182
+
183
  #. Description of the plugin/theme
184
  msgid ""
185
  "Protect your website by changing the login URL and preventing access to wp-"
languages/wpserveur-hide-login.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: WPS Hide Login\n"
6
- "POT-Creation-Date: 2018-03-06 10:48+0100\n"
7
  "PO-Revision-Date: 2018-03-06 10:48+0100\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
@@ -20,30 +20,30 @@ msgstr ""
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
- #: classes/plugin.php:164
24
  msgid "Please upgrade to the latest version of WordPress to activate"
25
  msgstr ""
26
 
27
  #. Plugin Name of the plugin/theme
28
- #: classes/plugin.php:164 classes/plugin.php:184 classes/plugin.php:540
29
- #: classes/plugin.php:549
30
  msgid "WPS Hide Login"
31
  msgstr ""
32
 
33
- #: classes/plugin.php:170
34
  msgid ""
35
  "WPS Hide Login could not be activated because you already have Rename wp-"
36
  "login.php active. Please uninstall rename wp-login.php to use WPS Hide Login"
37
  msgstr ""
38
 
39
- #: classes/plugin.php:185
40
  msgid ""
41
  "This option allows you to set a networkwide default, which can be overridden "
42
  "by individual sites. Simply go to to the site’s permalink settings to change "
43
  "the url."
44
  msgstr ""
45
 
46
- #: classes/plugin.php:186 classes/plugin.php:285
47
  #, php-format
48
  msgid ""
49
  "Need help? Try the <a href=\"%1$s\" target=\"_blank\">support forum</a>. "
@@ -51,69 +51,123 @@ msgid ""
51
  "\">WPServeur</a>"
52
  msgstr ""
53
 
54
- #: classes/plugin.php:189
55
  msgid "Networkwide default"
56
  msgstr ""
57
 
58
- #: classes/plugin.php:223
 
 
 
 
59
  msgid "Login url"
60
  msgstr ""
61
 
62
- #: classes/plugin.php:285
 
 
 
 
63
  msgid "WordPress specialized hosting"
64
  msgstr ""
65
 
66
- #: classes/plugin.php:286
67
  msgid "Discover our other plugins:"
68
  msgstr ""
69
 
70
- #: classes/plugin.php:287
71
  msgid "the plugin"
72
  msgstr ""
73
 
74
- #: classes/plugin.php:287
75
  msgid "WPS Bidouille"
76
  msgstr ""
77
 
78
- #: classes/plugin.php:288
 
 
 
 
79
  msgid "and"
80
  msgstr ""
81
 
82
- #: classes/plugin.php:288
83
  msgid "WPS Limit Login"
84
  msgstr ""
85
 
86
- #: classes/plugin.php:297
87
  #, php-format
88
  msgid ""
89
  "To set a networkwide default, go to <a href=\"%s\">Network Settings</a>."
90
  msgstr ""
91
 
92
- #: classes/plugin.php:317
93
  msgid ""
94
  "Protect your website by changing the login URL and preventing access to the "
95
  "wp-login.php page and the wp-admin directory to non-connected people."
96
  msgstr ""
97
 
98
- #: classes/plugin.php:332
 
 
 
 
 
 
99
  #, php-format
100
  msgid ""
101
  "Your login page is now here: <strong><a href=\"%1$s\">%2$s</a></strong>. "
102
  "Bookmark this page!"
103
  msgstr ""
104
 
105
- #: classes/plugin.php:343 classes/plugin.php:347
106
  msgid "Settings"
107
  msgstr ""
108
 
109
- #: classes/plugin.php:363
110
  msgid "This feature is not enabled."
111
  msgstr ""
112
 
113
- #: classes/plugin.php:394
114
  msgid "This has been disabled"
115
  msgstr ""
116
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
117
  #. Description of the plugin/theme
118
  msgid ""
119
  "Protect your website by changing the login URL and preventing access to wp-"
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: WPS Hide Login\n"
6
+ "POT-Creation-Date: 2018-11-13 11:42+0100\n"
7
  "PO-Revision-Date: 2018-03-06 10:48+0100\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
+ #: classes/plugin.php:169
24
  msgid "Please upgrade to the latest version of WordPress to activate"
25
  msgstr ""
26
 
27
  #. Plugin Name of the plugin/theme
28
+ #: classes/plugin.php:169 classes/plugin.php:192 classes/plugin.php:605
29
+ #: classes/plugin.php:614
30
  msgid "WPS Hide Login"
31
  msgstr ""
32
 
33
+ #: classes/plugin.php:175
34
  msgid ""
35
  "WPS Hide Login could not be activated because you already have Rename wp-"
36
  "login.php active. Please uninstall rename wp-login.php to use WPS Hide Login"
37
  msgstr ""
38
 
39
+ #: classes/plugin.php:193
40
  msgid ""
41
  "This option allows you to set a networkwide default, which can be overridden "
42
  "by individual sites. Simply go to to the site’s permalink settings to change "
43
  "the url."
44
  msgstr ""
45
 
46
+ #: classes/plugin.php:194 classes/plugin.php:320
47
  #, php-format
48
  msgid ""
49
  "Need help? Try the <a href=\"%1$s\" target=\"_blank\">support forum</a>. "
51
  "\">WPServeur</a>"
52
  msgstr ""
53
 
54
+ #: classes/plugin.php:197
55
  msgid "Networkwide default"
56
  msgstr ""
57
 
58
+ #: classes/plugin.php:199
59
+ msgid "Redirection url default"
60
+ msgstr ""
61
+
62
+ #: classes/plugin.php:239
63
  msgid "Login url"
64
  msgstr ""
65
 
66
+ #: classes/plugin.php:247
67
+ msgid "Redirection url"
68
+ msgstr ""
69
+
70
+ #: classes/plugin.php:320
71
  msgid "WordPress specialized hosting"
72
  msgstr ""
73
 
74
+ #: classes/plugin.php:321
75
  msgid "Discover our other plugins:"
76
  msgstr ""
77
 
78
+ #: classes/plugin.php:322 classes/plugin.php:323
79
  msgid "the plugin"
80
  msgstr ""
81
 
82
+ #: classes/plugin.php:322
83
  msgid "WPS Bidouille"
84
  msgstr ""
85
 
86
+ #: classes/plugin.php:323
87
+ msgid "WPS Cleaner"
88
+ msgstr ""
89
+
90
+ #: classes/plugin.php:324
91
  msgid "and"
92
  msgstr ""
93
 
94
+ #: classes/plugin.php:324
95
  msgid "WPS Limit Login"
96
  msgstr ""
97
 
98
+ #: classes/plugin.php:333
99
  #, php-format
100
  msgid ""
101
  "To set a networkwide default, go to <a href=\"%s\">Network Settings</a>."
102
  msgstr ""
103
 
104
+ #: classes/plugin.php:353
105
  msgid ""
106
  "Protect your website by changing the login URL and preventing access to the "
107
  "wp-login.php page and the wp-admin directory to non-connected people."
108
  msgstr ""
109
 
110
+ #: classes/plugin.php:368
111
+ msgid ""
112
+ "Redirect URL when someone tries to access the wp-login.php page and the wp-"
113
+ "admin directory while not logged in."
114
+ msgstr ""
115
+
116
+ #: classes/plugin.php:382
117
  #, php-format
118
  msgid ""
119
  "Your login page is now here: <strong><a href=\"%1$s\">%2$s</a></strong>. "
120
  "Bookmark this page!"
121
  msgstr ""
122
 
123
+ #: classes/plugin.php:393 classes/plugin.php:397
124
  msgid "Settings"
125
  msgstr ""
126
 
127
+ #: classes/plugin.php:413
128
  msgid "This feature is not enabled."
129
  msgstr ""
130
 
131
+ #: classes/plugin.php:453
132
  msgid "This has been disabled"
133
  msgstr ""
134
 
135
+ #: vendor/NicolasKulka/wp-dismissible-notices-handler/handler.php:228
136
+ msgid "Dismissible Notices Handler Error:"
137
+ msgstr ""
138
+
139
+ #: vendor/NicolasKulka/wp-dismissible-notices-handler/handler.php:315
140
+ #, php-format
141
+ msgid "A notice with the ID %s has already been registered."
142
+ msgstr ""
143
+
144
+ #: vendor/NicolasKulka/wp-review-me/review.php:112
145
+ msgid ""
146
+ "Hey! It&#039;s been a little while that you&#039;ve been using this product. "
147
+ "You might not realize it, but user reviews are such a great help to us. We "
148
+ "would be so grateful if you could take a minute to leave a review on "
149
+ "WordPress.org. Many thanks in advance :)"
150
+ msgstr ""
151
+
152
+ #: vendor/NicolasKulka/wp-review-me/review.php:113
153
+ msgid "Click here to leave your review"
154
+ msgstr ""
155
+
156
+ #: vendor/NicolasKulka/wp-review-me/review.php:167
157
+ #, php-format
158
+ msgid "Dependencies are missing. Please run a %s."
159
+ msgstr ""
160
+
161
+ #: vendor/NicolasKulka/wp-review-me/review.php:228
162
+ msgid "WP Review Me Error:"
163
+ msgstr ""
164
+
165
+ #: wps-hide-login.php:41
166
+ msgid ""
167
+ "Do you like plugin WPS Hide Login? <br> Thank you for taking a few seconds "
168
+ "to note us on"
169
+ msgstr ""
170
+
171
  #. Description of the plugin/theme
172
  msgid ""
173
  "Protect your website by changing the login URL and preventing access to wp-"
readme.txt CHANGED
@@ -5,7 +5,8 @@ Donate link : https://www.paypal.me/donateWPServeur
5
  Tags: rename, login, wp-login, wp-login.php, custom login url, jetpack
6
  Requires at least: 4.1
7
  Tested up to: 4.9
8
- Stable tag: 1.4.5
 
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -145,6 +146,9 @@ First step is to check your .htaccess file and compare it to a regular one, to s
145
 
146
  == Changelog ==
147
 
 
 
 
148
  = 1.4.5 =
149
  * Fix : function wp_login_url on page 404 now returns an empty link
150
 
5
  Tags: rename, login, wp-login, wp-login.php, custom login url, jetpack
6
  Requires at least: 4.1
7
  Tested up to: 4.9
8
+ Requires PHP: 7.0
9
+ Stable tag: 1.5
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 =
150
+ * Enhancement: Add custom redirection URL
151
+
152
  = 1.4.5 =
153
  * Fix : function wp_login_url on page 404 now returns an empty link
154
 
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, tabrisrp
7
  Author URI: https://wpserveur.net
8
- Version: 1.4.5
9
  Requires at least: 4.1
10
  Tested up to: 4.9
11
  Requires PHP: 7.0
@@ -21,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) {
21
  }
22
 
23
  // Plugin constants
24
- define( 'WPS_HIDE_LOGIN_VERSION', '1.4.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
9
  Requires at least: 4.1
10
  Tested up to: 4.9
11
  Requires PHP: 7.0
21
  }
22
 
23
  // Plugin constants
24
+ define( 'WPS_HIDE_LOGIN_VERSION', '1.5' );
25
  define( 'WPS_HIDE_LOGIN_FOLDER', 'wps-hide-login' );
26
 
27
  define( 'WPS_HIDE_LOGIN_URL', plugin_dir_url( __FILE__ ) );