New User Approve - Version 1.7.6

Version Description

  • Fixed: Formatting of readme.txt had line breaks where they should have been
  • Fixed: Fix how deny_user() gets user_email
    • Courtesy of jrequiroso
    • https://github.com/picklewagon/new-user-approve/pull/22
  • Fixed: Show unapproved user error message when the user attempts to reset password
  • Updated: Swedish translations
    • Courtesy of adevade
    • https://github.com/picklewagon/new-user-approve/pull/59
  • Updated: Updates to admin approval screen
    • Courtesy of adevade
    • https://github.com/picklewagon/new-user-approve/pull/60
  • Added: Don't allow a super admin to be denied or approved
    • https://github.com/picklewagon/new-user-approve/pull/19
  • Added: readme.md to show content in github
Download this release

Release Info

Developer picklewagon
Plugin Icon 128x128 New User Approve
Version 1.7.6
Comparing to
See all releases

Code changes from version 1.7.5 to 1.7.6

includes/admin-approve.php CHANGED
@@ -83,9 +83,9 @@ class pw_new_user_approve_admin_approve {
83
  <th><?php _e( 'Name', 'new-user-approve' ); ?></th>
84
  <th><?php _e( 'E-mail', 'new-user-approve' ); ?></th>
85
  <?php if ( 'pending' == $status ) { ?>
86
- <th colspan="2" style="text-align: center"><?php _e( 'Actions', 'new-user-approve' ); ?></th>
87
  <?php } else { ?>
88
- <th style="text-align: center"><?php _e( 'Actions', 'new-user-approve' ); ?></th>
89
  <?php } ?>
90
  </tr>
91
  </thead>
@@ -116,9 +116,9 @@ class pw_new_user_approve_admin_approve {
116
  } else {
117
  $edit_link = add_query_arg( 'wp_http_referer', urlencode( esc_url( stripslashes( $_SERVER['REQUEST_URI'] ) ) ), "user-edit.php?user_id=$user->ID" );
118
  }
119
- $edit = '<strong><a href="' . esc_url( $edit_link ) . '">' . esc_html( $user->user_login ) . '</a></strong>';
120
  } else {
121
- $edit = '<strong>' . esc_html( $user->user_login ) . '</strong>';
122
  }
123
 
124
  ?>
@@ -129,12 +129,12 @@ class pw_new_user_approve_admin_approve {
129
  title="<?php _e( 'email:', 'new-user-approve' ) ?> <?php echo $user->user_email; ?>"><?php echo $user->user_email; ?></a>
130
  </td>
131
  <?php if ( $approve && $user->ID != get_current_user_id() ) { ?>
132
- <td align="center"><a href="<?php echo esc_url( $approve_link ); ?>"
133
  title="<?php _e( 'Approve', 'new-user-approve' ); ?> <?php echo $user->user_login; ?>"><?php _e( 'Approve', 'new-user-approve' ); ?></a>
134
  </td>
135
  <?php } ?>
136
  <?php if ( $deny && $user->ID != get_current_user_id() ) { ?>
137
- <td align="center"><a href="<?php echo esc_url( $deny_link ); ?>"
138
  title="<?php _e( 'Deny', 'new-user-approve' ); ?> <?php echo $user->user_login; ?>"><?php _e( 'Deny', 'new-user-approve' ); ?></a>
139
  </td>
140
  <?php } ?>
83
  <th><?php _e( 'Name', 'new-user-approve' ); ?></th>
84
  <th><?php _e( 'E-mail', 'new-user-approve' ); ?></th>
85
  <?php if ( 'pending' == $status ) { ?>
86
+ <th colspan="2"><?php _e( 'Actions', 'new-user-approve' ); ?></th>
87
  <?php } else { ?>
88
+ <th><?php _e( 'Actions', 'new-user-approve' ); ?></th>
89
  <?php } ?>
90
  </tr>
91
  </thead>
116
  } else {
117
  $edit_link = add_query_arg( 'wp_http_referer', urlencode( esc_url( stripslashes( $_SERVER['REQUEST_URI'] ) ) ), "user-edit.php?user_id=$user->ID" );
118
  }
119
+ $edit = '<strong style="position: relative; top: -17px; left: 6px;"><a href="' . esc_url( $edit_link ) . '">' . esc_html( $user->user_login ) . '</a></strong>';
120
  } else {
121
+ $edit = '<strong style="position: relative; top: -17px; left: 6px;">' . esc_html( $user->user_login ) . '</strong>';
122
  }
123
 
124
  ?>
129
  title="<?php _e( 'email:', 'new-user-approve' ) ?> <?php echo $user->user_email; ?>"><?php echo $user->user_email; ?></a>
130
  </td>
131
  <?php if ( $approve && $user->ID != get_current_user_id() ) { ?>
132
+ <td><a class="button-primary" href="<?php echo esc_url( $approve_link ); ?>"
133
  title="<?php _e( 'Approve', 'new-user-approve' ); ?> <?php echo $user->user_login; ?>"><?php _e( 'Approve', 'new-user-approve' ); ?></a>
134
  </td>
135
  <?php } ?>
136
  <?php if ( $deny && $user->ID != get_current_user_id() ) { ?>
137
+ <td><a class="button" href="<?php echo esc_url( $deny_link ); ?>"
138
  title="<?php _e( 'Deny', 'new-user-approve' ); ?> <?php echo $user->user_login; ?>"><?php _e( 'Deny', 'new-user-approve' ); ?></a>
139
  </td>
140
  <?php } ?>
includes/plugins.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Contains all functionality to make the New User Approve plugin
4
- * compatible with all plugins.
5
  */
6
 
7
  /*
1
  <?php
2
  /**
3
  * Contains all functionality to make the New User Approve plugin
4
+ * compatible with other plugins.
5
  */
6
 
7
  /*
includes/user-list.php CHANGED
@@ -82,8 +82,13 @@ class pw_new_user_approve_user_list {
82
  * @return array
83
  */
84
  public function user_table_actions( $actions, $user ) {
85
- if ( $user->ID == get_current_user_id() )
86
  return $actions;
 
 
 
 
 
87
 
88
  $user_status = pw_new_user_approve()->get_user_status( $user->ID );
89
 
82
  * @return array
83
  */
84
  public function user_table_actions( $actions, $user ) {
85
+ if ( $user->ID == get_current_user_id() ) {
86
  return $actions;
87
+ }
88
+
89
+ if ( is_super_admin( $user->ID ) ) {
90
+ return $actions;
91
+ }
92
 
93
  $user_status = pw_new_user_approve()->get_user_status( $user->ID );
94
 
localization/new-user-approve-pt_BR.po CHANGED
@@ -4,19 +4,20 @@ msgstr ""
4
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/new-user-approve\n"
5
  "POT-Creation-Date: 2014-10-08 23:50-0700\n"
6
  "PO-Revision-Date: \n"
7
- "Last-Translator: Josh Harrison <josh@picklewagon.com>\n"
8
  "Language-Team: \n"
9
  "Language: pt_BR\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=utf-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "X-Poedit-SourceCharset: utf-8\n"
14
- "X-Generator: Poedit 1.5.7\n"
 
15
 
16
  #: ../new-user-approve.php:98
17
  #, php-format
18
  msgid "New User Approve requires WordPress %s or newer."
19
- msgstr ""
20
 
21
  #: ../new-user-approve.php:145
22
  #, php-format
@@ -25,15 +26,18 @@ msgid ""
25
  "to work correctly. <a href=\"%1$s\">Update in settings</a>. | <a href=\"%2$s"
26
  "\">Hide Notice</a>"
27
  msgstr ""
 
 
 
28
 
29
  #: ../new-user-approve.php:257
30
  msgid "<strong>ERROR</strong>: Your account is still pending approval."
31
- msgstr ""
32
 
33
  #: ../new-user-approve.php:260
34
  msgid ""
35
  "<strong>ERROR</strong>: Your account has been denied access to this site."
36
- msgstr ""
37
 
38
  #: ../new-user-approve.php:362
39
  msgid "Users"
@@ -50,6 +54,8 @@ msgid ""
50
  "<strong>ERROR</strong>: Couldn&#8217;t register you... please contact the <a "
51
  "href=\"mailto:%s\">webmaster</a> !"
52
  msgstr ""
 
 
53
 
54
  #: ../new-user-approve.php:520
55
  #, php-format
@@ -91,7 +97,7 @@ msgstr "Nome"
91
 
92
  #: ../includes/admin-approve.php:84
93
  msgid "E-mail"
94
- msgstr ""
95
 
96
  #: ../includes/admin-approve.php:86 ../includes/admin-approve.php:88
97
  msgid "Actions"
@@ -99,7 +105,7 @@ msgstr "Ações"
99
 
100
  #: ../includes/admin-approve.php:129
101
  msgid "email:"
102
- msgstr ""
103
 
104
  #: ../includes/admin-approve.php:133 ../includes/user-list.php:97
105
  #: ../includes/user-list.php:223 ../includes/user-list.php:224
@@ -134,23 +140,25 @@ msgid ""
134
  "You can now update user status on the <a href=\"%1$s\">users admin page</a>. "
135
  "| <a href=\"%2$s\">Hide Notice</a>"
136
  msgstr ""
 
 
137
 
138
  #: ../includes/admin-approve.php:220
139
  #, fuzzy
140
  msgid "Approve Users"
141
- msgstr "Usuários aprovados"
142
 
143
  #: ../includes/admin-approve.php:221
144
  msgid "Updates"
145
- msgstr ""
146
 
147
  #: ../includes/admin-approve.php:222
148
  msgid "Support"
149
- msgstr ""
150
 
151
  #: ../includes/admin-approve.php:223
152
  msgid "Feedback"
153
- msgstr ""
154
 
155
  #: ../includes/admin-approve.php:231
156
  msgid "Users Pending Approval"
@@ -167,30 +175,31 @@ msgstr "Usuários negados"
167
  #: ../includes/email-tags.php:235
168
  msgid "The user's username on the site as well as the Username label"
169
  msgstr ""
 
170
 
171
  #: ../includes/email-tags.php:241
172
  msgid "The user's email address"
173
- msgstr ""
174
 
175
  #: ../includes/email-tags.php:247
176
  msgid "Your site name"
177
- msgstr ""
178
 
179
  #: ../includes/email-tags.php:253
180
  msgid "Your site URL"
181
- msgstr ""
182
 
183
  #: ../includes/email-tags.php:259
184
  msgid "The URL to approve/deny users"
185
- msgstr ""
186
 
187
  #: ../includes/email-tags.php:265
188
  msgid "The URL to login to the site"
189
- msgstr ""
190
 
191
  #: ../includes/email-tags.php:271
192
  msgid "Generates the password for the user to add to the email"
193
- msgstr ""
194
 
195
  #: ../includes/email-tags.php:299
196
  #, php-format
@@ -205,12 +214,12 @@ msgstr "Senha: %s"
205
  #: ../includes/messages.php:9
206
  #, fuzzy
207
  msgid "You have been approved to access {sitename}"
208
- msgstr "Seu acesso a %s foi aprovado"
209
 
210
  #: ../includes/messages.php:25
211
  #, fuzzy
212
  msgid "You have been denied access to {sitename}."
213
- msgstr "Seu acesso a %s foi negado"
214
 
215
  #: ../includes/messages.php:38
216
  msgid ""
@@ -235,18 +244,18 @@ msgid ""
235
  "Welcome to {sitename}. This site is accessible to approved users only. To be "
236
  "approved, you must first register."
237
  msgstr ""
238
- "Benvindo a %s. Este site é acessível apenas a usuários aprovados. Para ser "
239
- "aprovado, você precisa primeiro se registrar."
240
 
241
  #: ../includes/messages.php:66
242
  #, fuzzy
243
  msgid "{username} ({user_email}) has requested a username at {sitename}"
244
- msgstr "%1$s (%2$s) requisitou um nome de usuário em %3$s"
245
 
246
  #: ../includes/messages.php:68
247
  #, fuzzy
248
  msgid "To approve or deny this user access to {sitename} go to"
249
- msgstr "Para aprovar ou negar o acesso deste usuário a %s vá para"
250
 
251
  #: ../includes/messages.php:83
252
  msgid ""
@@ -258,45 +267,45 @@ msgstr ""
258
 
259
  #: ../includes/user-list.php:120
260
  msgid "Status"
261
- msgstr ""
262
 
263
  #: ../includes/user-list.php:156
264
  msgid "Filter"
265
- msgstr ""
266
 
267
  #: ../includes/user-list.php:161 ../includes/user-list.php:163
268
  msgid "View all users"
269
- msgstr ""
270
 
271
  #: ../includes/user-list.php:320
272
- #, fuzzy, php-format
273
  msgid "User denied."
274
  msgid_plural "%s users denied."
275
- msgstr[0] "negado"
276
- msgstr[1] "negado"
277
 
278
  #: ../includes/user-list.php:325
279
- #, fuzzy, php-format
280
  msgid "User approved."
281
  msgid_plural "%s users approved."
282
- msgstr[0] "Έγκριση Νέου Χρήστη"
283
- msgstr[1] "Έγκριση Νέου Χρήστη"
284
 
285
  #: ../includes/user-list.php:349
286
  msgid "Access Status"
287
- msgstr ""
288
 
289
  #: ../includes/user-list.php:354
290
  msgid "-- Status --"
291
- msgstr ""
292
 
293
  #: ../includes/user-list.php:362
294
  msgid "If user has access to sign in or not."
295
- msgstr ""
296
 
297
  #: ../includes/user-list.php:365
298
  msgid "Current user status is <strong>pending</strong>."
299
- msgstr ""
300
 
301
  #~ msgid "Settings"
302
  #~ msgstr "Configurações"
4
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/new-user-approve\n"
5
  "POT-Creation-Date: 2014-10-08 23:50-0700\n"
6
  "PO-Revision-Date: \n"
7
+ "Last-Translator: Marcos Yoshihiro Nakamine <marcos@nakamine.com.br>\n"
8
  "Language-Team: \n"
9
  "Language: pt_BR\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=utf-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "X-Poedit-SourceCharset: utf-8\n"
14
+ "X-Generator: Poedit 1.8.7.1\n"
15
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
16
 
17
  #: ../new-user-approve.php:98
18
  #, php-format
19
  msgid "New User Approve requires WordPress %s or newer."
20
+ msgstr "New User Approve requer o WordPress %s ou mais recente."
21
 
22
  #: ../new-user-approve.php:145
23
  #, php-format
26
  "to work correctly. <a href=\"%1$s\">Update in settings</a>. | <a href=\"%2$s"
27
  "\">Hide Notice</a>"
28
  msgstr ""
29
+ "A configuração de associação deve estar ativada para que o plugin New User "
30
+ "Approve funcione corretamente. <a href=\"%1$s\">Atualizar em configurações</"
31
+ "a>. | <a href=\"%2$s\">Ocultar Aviso</a>"
32
 
33
  #: ../new-user-approve.php:257
34
  msgid "<strong>ERROR</strong>: Your account is still pending approval."
35
+ msgstr "<strong>ERRO</strong>: Sua conta ainda está pendente de aprovação."
36
 
37
  #: ../new-user-approve.php:260
38
  msgid ""
39
  "<strong>ERROR</strong>: Your account has been denied access to this site."
40
+ msgstr "<strong>ERRO</strong>: A sua conta teve acesso negado a este site."
41
 
42
  #: ../new-user-approve.php:362
43
  msgid "Users"
54
  "<strong>ERROR</strong>: Couldn&#8217;t register you... please contact the <a "
55
  "href=\"mailto:%s\">webmaster</a> !"
56
  msgstr ""
57
+ "<strong>ERROR</strong>: Não é possível se registar ... entre em contato com o "
58
+ "<a href=\"mailto:%s\">webmaster</a> !"
59
 
60
  #: ../new-user-approve.php:520
61
  #, php-format
97
 
98
  #: ../includes/admin-approve.php:84
99
  msgid "E-mail"
100
+ msgstr "E-mail"
101
 
102
  #: ../includes/admin-approve.php:86 ../includes/admin-approve.php:88
103
  msgid "Actions"
105
 
106
  #: ../includes/admin-approve.php:129
107
  msgid "email:"
108
+ msgstr "e-mail:"
109
 
110
  #: ../includes/admin-approve.php:133 ../includes/user-list.php:97
111
  #: ../includes/user-list.php:223 ../includes/user-list.php:224
140
  "You can now update user status on the <a href=\"%1$s\">users admin page</a>. "
141
  "| <a href=\"%2$s\">Hide Notice</a>"
142
  msgstr ""
143
+ "Agora você pode atualizar o status do usuário no <a href=\"%1$s\">página de "
144
+ "administração de usuários</a>. | <a href=\"%2$s\">Ocultar Aviso</a>"
145
 
146
  #: ../includes/admin-approve.php:220
147
  #, fuzzy
148
  msgid "Approve Users"
149
+ msgstr "Aprovar Usuários"
150
 
151
  #: ../includes/admin-approve.php:221
152
  msgid "Updates"
153
+ msgstr "Atualizações"
154
 
155
  #: ../includes/admin-approve.php:222
156
  msgid "Support"
157
+ msgstr "Apoio"
158
 
159
  #: ../includes/admin-approve.php:223
160
  msgid "Feedback"
161
+ msgstr "Comentários"
162
 
163
  #: ../includes/admin-approve.php:231
164
  msgid "Users Pending Approval"
175
  #: ../includes/email-tags.php:235
176
  msgid "The user's username on the site as well as the Username label"
177
  msgstr ""
178
+ "O nome de usuário do usuário no site, bem como o label do Nome de usuário"
179
 
180
  #: ../includes/email-tags.php:241
181
  msgid "The user's email address"
182
+ msgstr "O endereço de e-mail do usuário"
183
 
184
  #: ../includes/email-tags.php:247
185
  msgid "Your site name"
186
+ msgstr "Nome do seu site"
187
 
188
  #: ../includes/email-tags.php:253
189
  msgid "Your site URL"
190
+ msgstr "URL do seu site"
191
 
192
  #: ../includes/email-tags.php:259
193
  msgid "The URL to approve/deny users"
194
+ msgstr "O URL para aprovar/negar usuários"
195
 
196
  #: ../includes/email-tags.php:265
197
  msgid "The URL to login to the site"
198
+ msgstr "O URL para fazer login no site"
199
 
200
  #: ../includes/email-tags.php:271
201
  msgid "Generates the password for the user to add to the email"
202
+ msgstr "Gera a senha para o usuário adicionar ao e-mail"
203
 
204
  #: ../includes/email-tags.php:299
205
  #, php-format
214
  #: ../includes/messages.php:9
215
  #, fuzzy
216
  msgid "You have been approved to access {sitename}"
217
+ msgstr "Você foi aprovado para acessar {sitename}"
218
 
219
  #: ../includes/messages.php:25
220
  #, fuzzy
221
  msgid "You have been denied access to {sitename}."
222
+ msgstr "Você teve o acesso negado a {sitename}."
223
 
224
  #: ../includes/messages.php:38
225
  msgid ""
244
  "Welcome to {sitename}. This site is accessible to approved users only. To be "
245
  "approved, you must first register."
246
  msgstr ""
247
+ "Bem-vindo ao {sitename}. Este site é acessível apenas para usuários "
248
+ "aprovados. Para ser aprovado, você deve primeiro se registrar."
249
 
250
  #: ../includes/messages.php:66
251
  #, fuzzy
252
  msgid "{username} ({user_email}) has requested a username at {sitename}"
253
+ msgstr "{Username} ({user_email}) solicitou um nome de usuário em {sitename}"
254
 
255
  #: ../includes/messages.php:68
256
  #, fuzzy
257
  msgid "To approve or deny this user access to {sitename} go to"
258
+ msgstr "Para aprovar ou negar esse acesso de usuário a {sitename}, "
259
 
260
  #: ../includes/messages.php:83
261
  msgid ""
267
 
268
  #: ../includes/user-list.php:120
269
  msgid "Status"
270
+ msgstr "Status"
271
 
272
  #: ../includes/user-list.php:156
273
  msgid "Filter"
274
+ msgstr "Filtrar"
275
 
276
  #: ../includes/user-list.php:161 ../includes/user-list.php:163
277
  msgid "View all users"
278
+ msgstr "Ver todos os usuários"
279
 
280
  #: ../includes/user-list.php:320
281
+ #, php-format
282
  msgid "User denied."
283
  msgid_plural "%s users denied."
284
+ msgstr[0] "Acesso negado"
285
+ msgstr[1] "%s Acessos negados"
286
 
287
  #: ../includes/user-list.php:325
288
+ #, php-format
289
  msgid "User approved."
290
  msgid_plural "%s users approved."
291
+ msgstr[0] "Usuário aprovado"
292
+ msgstr[1] "%s usuários aprovados"
293
 
294
  #: ../includes/user-list.php:349
295
  msgid "Access Status"
296
+ msgstr "Status de Acesso"
297
 
298
  #: ../includes/user-list.php:354
299
  msgid "-- Status --"
300
+ msgstr "-- Status --"
301
 
302
  #: ../includes/user-list.php:362
303
  msgid "If user has access to sign in or not."
304
+ msgstr "Se o usuário tiver acesso para iniciar sessão ou não."
305
 
306
  #: ../includes/user-list.php:365
307
  msgid "Current user status is <strong>pending</strong>."
308
+ msgstr "O status atual do usuário é <strong>pendente</strong>."
309
 
310
  #~ msgid "Settings"
311
  #~ msgstr "Configurações"
localization/new-user-approve-sv_SE.mo CHANGED
Binary file
localization/new-user-approve-sv_SE.po CHANGED
@@ -5,212 +5,316 @@
5
  #
6
  msgid ""
7
  msgstr ""
8
- "Project-Id-Version: PACKAGE VERSION\n"
9
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/new-user-approve\n"
10
- "POT-Creation-Date: 2009-10-29 08:32+0000\n"
11
- "PO-Revision-Date: 2014-12-31 00:56-0700\n"
12
- "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
- "Language-Team: LANGUAGE <LL@li.org>\n"
 
14
  "MIME-Version: 1.0\n"
15
  "Content-Type: text/plain; charset=UTF-8\n"
16
  "Content-Transfer-Encoding: 8bit\n"
17
- "X-Generator: Poedit 1.5.7\n"
 
18
 
19
- #: new-user-approve.php:126
20
- msgid "Approve New Users"
21
- msgstr "Godkänna nya användare"
 
 
 
 
 
 
 
 
 
 
 
 
22
 
23
- #: new-user-approve.php:140
24
- msgid "Settings"
25
- msgstr "Inställningar"
26
 
27
- #: new-user-approve.php:183
 
 
 
 
 
 
28
  msgid "Users"
29
  msgstr "Användare"
30
 
31
- #: new-user-approve.php:219
32
- msgid "User successfully updated."
33
- msgstr "Användaren uppdaterad."
 
34
 
35
- #: new-user-approve.php:223
36
- msgid "User Registration Approval"
37
- msgstr "Godkänna registrerad användare"
 
 
 
 
 
38
 
39
- #: new-user-approve.php:225
40
- msgid "User Management"
41
- msgstr "Hantera användare"
 
42
 
43
- #: new-user-approve.php:228
44
- msgid "Users Pending Approval"
 
 
 
 
 
 
 
 
 
45
  msgstr "Väntar på godkännande"
46
 
47
- #: new-user-approve.php:229
48
- msgid "Approved Users"
49
- msgstr "Godkända användare"
50
 
51
- #: new-user-approve.php:230
52
- msgid "Denied Users"
53
- msgstr "Ej godkända användare"
54
 
55
- #: new-user-approve.php:255
56
- msgid "ID"
57
- msgstr ""
58
 
59
- #: new-user-approve.php:256
60
  msgid "Username"
61
- msgstr "Användare"
62
 
63
- #: new-user-approve.php:257
64
  msgid "Name"
65
  msgstr "Namn"
66
 
67
- #: new-user-approve.php:258
68
  msgid "E-mail"
69
  msgstr "E-post"
70
 
71
- #: new-user-approve.php:260 new-user-approve.php:262
72
  msgid "Actions"
73
- msgstr "Kommando"
74
 
75
- #: new-user-approve.php:296
76
  msgid "email:"
77
- msgstr "e-post"
78
 
79
- #: new-user-approve.php:298
 
80
  msgid "Approve"
81
- msgstr "Godkänna"
82
 
83
- #: new-user-approve.php:301
 
84
  msgid "Deny"
85
- msgstr "Avslå"
86
 
87
- #: new-user-approve.php:313
88
  msgid "approved"
89
- msgstr "godkända"
90
 
91
- #: new-user-approve.php:315
92
  msgid "denied"
93
- msgstr "ej godkända"
94
 
95
- #: new-user-approve.php:317
96
  msgid "pending"
97
- msgstr "väntar på godkännande"
98
 
99
- #: new-user-approve.php:320
100
  #, php-format
101
  msgid "There are no users with a status of %s"
102
- msgstr "Det finns inga användare med status %s"
103
-
104
- #: new-user-approve.php:332
105
- msgid "User name already exists"
106
- msgstr "Användaren finns redan"
107
-
108
- #: new-user-approve.php:335
109
- #, php-format
110
- msgid "%1$s (%2$s) has requested a username at %3$s"
111
- msgstr "%1$s (%2$s) har ansökt om ett användarkonto hos %3$s"
112
 
113
- #: new-user-approve.php:337
114
  #, php-format
115
- msgid "To approve or deny this user access to %s go to"
 
 
116
  msgstr ""
117
- "Använd följande länk för att godkänna eller avslå denna ansökan till %s"
 
118
 
119
- #: new-user-approve.php:341
120
- #, php-format
121
- msgid "[%s] User Approval"
122
- msgstr "[%s] Ny användare väntar på godkännande"
123
 
124
- #: new-user-approve.php:372
125
- #, php-format
126
- msgid "You have been approved to access %s"
127
- msgstr "Ditt konto har godkänts hos %s"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
128
 
129
- #: new-user-approve.php:373
 
 
 
 
 
 
 
 
 
 
 
 
130
  #, php-format
131
  msgid "Username: %s"
132
  msgstr "Användarnamn: %s"
133
 
134
- #: new-user-approve.php:374
135
  #, php-format
136
  msgid "Password: %s"
137
  msgstr "Lösenord: %s"
138
 
139
- #: new-user-approve.php:378
140
- #, php-format
141
- msgid "[%s] Registration Approved"
142
- msgstr "[%s] Din ansökan godkänd"
143
 
144
- #: new-user-approve.php:397
145
- #, php-format
146
- msgid "You have been denied access to %s"
147
- msgstr "Ditt användarkonto hos %s har inte godkänts"
148
 
149
- #: new-user-approve.php:400
150
- #, php-format
151
- msgid "[%s] Registration Denied"
152
- msgstr "[%s] Din ansökan har inte godkänts"
153
 
154
- #: new-user-approve.php:413
155
  msgid ""
156
  "An email has been sent to the site administrator. The administrator will "
157
  "review the information that has been submitted and either approve or deny "
158
  "your request."
159
  msgstr ""
160
- "Ett e-postbrev har skickats till sajtens administratör. Administratören "
161
- "kommer att granska dina uppgifter och därefter godkänna eller avslå din "
162
- "ansökan."
163
 
164
- #: new-user-approve.php:414
165
  msgid ""
166
  "You will receive an email with instructions on what you will need to do "
167
  "next. Thanks for your patience."
168
  msgstr ""
169
- "Du kommer att få ett e-postbrev med instruktioner. Tack för din ansökan!"
170
-
171
- #: new-user-approve.php:418
172
- msgid "Pending Approval"
173
- msgstr "Väntar på godkännande"
174
 
175
- #: new-user-approve.php:418
176
- msgid "Registration successful."
177
- msgstr "Registreringen lyckades."
178
-
179
- #: new-user-approve.php:466
180
- #, php-format
181
  msgid ""
182
- "Welcome to %s. This site is accessible to approved users only. To be "
183
  "approved, you must first register."
184
  msgstr ""
185
- "Välkommen till %s. Den här sajten är bara tillgänglig för godkända "
186
- "användare. För att bli godkänd måste du registrera dig."
 
 
 
 
187
 
188
- #: new-user-approve.php:471
 
 
 
 
 
189
  msgid ""
190
  "After you register, your request will be sent to the site administrator for "
191
  "approval. You will then receive an email with further instructions."
192
  msgstr ""
193
- "Efter att du registrerat dig kommer din ansökan att granskas för "
194
- "godkännande. Du får då ett e-postbrev med mera information."
195
 
196
- #. Plugin Name of an extension
197
- msgid "New User Approve"
198
- msgstr ""
199
 
200
- #. Plugin URI of an extension
201
- msgid "http://www.picklewagon.com/wordpress/new-user-approve"
202
- msgstr ""
203
 
204
- #. Description of an extension
205
- msgid ""
206
- "This plugin allows administrators to approve users once they register. Only "
207
- "approved users will be allowed to access the blog."
208
- msgstr ""
209
 
210
- #. Author of an extension
211
- msgid "Josh Harrison"
212
- msgstr ""
 
 
 
213
 
214
- #. Author URI of an extension
215
- msgid "http://www.picklewagon.com/"
216
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  #
6
  msgid ""
7
  msgstr ""
8
+ "Project-Id-Version: \n"
9
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/new-user-approve\n"
10
+ "POT-Creation-Date: 2014-10-08 23:50-0700\n"
11
+ "PO-Revision-Date: 2017-08-29 15:42+0200\n"
12
+ "Last-Translator: Andréas Lundgren <adevade@gmail.com>\n"
13
+ "Language-Team: \n"
14
+ "Language: sv_SE\n"
15
  "MIME-Version: 1.0\n"
16
  "Content-Type: text/plain; charset=UTF-8\n"
17
  "Content-Transfer-Encoding: 8bit\n"
18
+ "X-Generator: Poedit 2.0.3\n"
19
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
20
 
21
+ #: ../new-user-approve.php:98
22
+ #, php-format
23
+ msgid "New User Approve requires WordPress %s or newer."
24
+ msgstr "New User Approve kräver WordPress %s eller nyare."
25
+
26
+ #: ../new-user-approve.php:145
27
+ #, php-format
28
+ msgid ""
29
+ "The Membership setting must be turned on in order for the New User Approve "
30
+ "to work correctly. <a href=\"%1$s\">Update in settings</a>. | <a href=\"%2$s"
31
+ "\">Hide Notice</a>"
32
+ msgstr ""
33
+ "Inställningen för Medlemskap måste vara aktiverad för att New User Approve "
34
+ "ska fungera. <a href=\"%1$s\">Uppdatera inställningar</a>. | <a href=\"%2$s"
35
+ "\">Stäng detta meddelandet</a>"
36
 
37
+ #: ../new-user-approve.php:257
38
+ msgid "<strong>ERROR</strong>: Your account is still pending approval."
39
+ msgstr "<strong>FEL</strong>: Ditt konto väntar fortfarande på godkännande."
40
 
41
+ #: ../new-user-approve.php:260
42
+ msgid ""
43
+ "<strong>ERROR</strong>: Your account has been denied access to this site."
44
+ msgstr ""
45
+ "<strong>FEL</strong>: Ditt konto har nekats åtkomst till denna webbplatsen."
46
+
47
+ #: ../new-user-approve.php:362
48
  msgid "Users"
49
  msgstr "Användare"
50
 
51
+ #: ../new-user-approve.php:392
52
+ #, php-format
53
+ msgid "[%s] User Approval"
54
+ msgstr "[%s] Ny ansökan om konto"
55
 
56
+ #: ../new-user-approve.php:454
57
+ #, php-format
58
+ msgid ""
59
+ "<strong>ERROR</strong>: Couldn&#8217;t register you... please contact the <a "
60
+ "href=\"mailto:%s\">webmaster</a> !"
61
+ msgstr ""
62
+ "<strong>FEL</strong>: Kunde inte registrera konto. Vänligen kontakta <a href="
63
+ "\"mailto:%s\">administratören</a> !"
64
 
65
+ #: ../new-user-approve.php:520
66
+ #, php-format
67
+ msgid "[%s] Registration Approved"
68
+ msgstr "[%s] Ansökan godkänd"
69
 
70
+ #: ../new-user-approve.php:550
71
+ #, php-format
72
+ msgid "[%s] Registration Denied"
73
+ msgstr "[%s] Ansökan nekad"
74
+
75
+ #: ../new-user-approve.php:614
76
+ msgid "Registration successful."
77
+ msgstr "Registreringen lyckades."
78
+
79
+ #: ../new-user-approve.php:617
80
+ msgid "Pending Approval"
81
  msgstr "Väntar på godkännande"
82
 
83
+ #: ../admin/templates/approve.php:6
84
+ msgid "User successfully updated."
85
+ msgstr "Användaren uppdaterades."
86
 
87
+ #: ../admin/templates/approve.php:11
88
+ msgid "User Registration Approval"
89
+ msgstr "Hantera användarregistreringar"
90
 
91
+ #: ../includes/admin-approve.php:50
92
+ msgid "Approve New Users"
93
+ msgstr "Hantera nya användare"
94
 
95
+ #: ../includes/admin-approve.php:82
96
  msgid "Username"
97
+ msgstr "Användarnamn"
98
 
99
+ #: ../includes/admin-approve.php:83
100
  msgid "Name"
101
  msgstr "Namn"
102
 
103
+ #: ../includes/admin-approve.php:84
104
  msgid "E-mail"
105
  msgstr "E-post"
106
 
107
+ #: ../includes/admin-approve.php:86 ../includes/admin-approve.php:88
108
  msgid "Actions"
109
+ msgstr "Åtgärder"
110
 
111
+ #: ../includes/admin-approve.php:129
112
  msgid "email:"
113
+ msgstr "E-postadress:"
114
 
115
+ #: ../includes/admin-approve.php:133 ../includes/user-list.php:97
116
+ #: ../includes/user-list.php:223 ../includes/user-list.php:224
117
  msgid "Approve"
118
+ msgstr "Godkänn"
119
 
120
+ #: ../includes/admin-approve.php:138 ../includes/user-list.php:98
121
+ #: ../includes/user-list.php:226 ../includes/user-list.php:227
122
  msgid "Deny"
123
+ msgstr "Neka"
124
 
125
+ #: ../includes/admin-approve.php:154
126
  msgid "approved"
127
+ msgstr "Godkänd"
128
 
129
+ #: ../includes/admin-approve.php:156
130
  msgid "denied"
131
+ msgstr "Nekad"
132
 
133
+ #: ../includes/admin-approve.php:158
134
  msgid "pending"
135
+ msgstr "Väntande"
136
 
137
+ #: ../includes/admin-approve.php:161
138
  #, php-format
139
  msgid "There are no users with a status of %s"
140
+ msgstr "Det finns inga användare med statusen %s"
 
 
 
 
 
 
 
 
 
141
 
142
+ #: ../includes/admin-approve.php:197
143
  #, php-format
144
+ msgid ""
145
+ "You can now update user status on the <a href=\"%1$s\">users admin page</a>. "
146
+ "| <a href=\"%2$s\">Hide Notice</a>"
147
  msgstr ""
148
+ "Du kan nu uppdatera användarstatus sidan <a href=\"%1$s\">Alla användare</"
149
+ "a>. | <a href=\"%2$s\">Stäng detta meddelandet</a>"
150
 
151
+ #: ../includes/admin-approve.php:220
152
+ msgid "Approve Users"
153
+ msgstr "Godkänna användare"
 
154
 
155
+ #: ../includes/admin-approve.php:221
156
+ msgid "Updates"
157
+ msgstr "Uppdateringar"
158
+
159
+ #: ../includes/admin-approve.php:222
160
+ msgid "Support"
161
+ msgstr "Support"
162
+
163
+ #: ../includes/admin-approve.php:223
164
+ msgid "Feedback"
165
+ msgstr "Feedback"
166
+
167
+ #: ../includes/admin-approve.php:231
168
+ msgid "Users Pending Approval"
169
+ msgstr "Väntar på godkännande"
170
+
171
+ #: ../includes/admin-approve.php:233
172
+ msgid "Approved Users"
173
+ msgstr "Godkända användare"
174
+
175
+ #: ../includes/admin-approve.php:235
176
+ msgid "Denied Users"
177
+ msgstr "Nekade användare"
178
+
179
+ #: ../includes/email-tags.php:235
180
+ msgid "The user's username on the site as well as the Username label"
181
+ msgstr "Användarens användarnamn på webbplatsen"
182
+
183
+ #: ../includes/email-tags.php:241
184
+ msgid "The user's email address"
185
+ msgstr "Användarens e-postadress"
186
+
187
+ #: ../includes/email-tags.php:247
188
+ msgid "Your site name"
189
+ msgstr "Webbplatstitel"
190
+
191
+ #: ../includes/email-tags.php:253
192
+ msgid "Your site URL"
193
+ msgstr "Webbplatsadress (URL)"
194
 
195
+ #: ../includes/email-tags.php:259
196
+ msgid "The URL to approve/deny users"
197
+ msgstr "Länk för att godkänna eller neka användare"
198
+
199
+ #: ../includes/email-tags.php:265
200
+ msgid "The URL to login to the site"
201
+ msgstr "Länk för att logga in på webbplatsen"
202
+
203
+ #: ../includes/email-tags.php:271
204
+ msgid "Generates the password for the user to add to the email"
205
+ msgstr "Genererar användarens lösenord till e-postmeddelandet"
206
+
207
+ #: ../includes/email-tags.php:299
208
  #, php-format
209
  msgid "Username: %s"
210
  msgstr "Användarnamn: %s"
211
 
212
+ #: ../includes/email-tags.php:390
213
  #, php-format
214
  msgid "Password: %s"
215
  msgstr "Lösenord: %s"
216
 
217
+ #: ../includes/messages.php:9
218
+ msgid "You have been approved to access {sitename}"
219
+ msgstr "Du har blivit godkänd åtkomst till {sitename}"
 
220
 
221
+ #: ../includes/messages.php:12
222
+ msgid "To set or reset your password, visit the following address:"
223
+ msgstr "För att ange eller återställa ditt lösenord, besök följande adress:"
 
224
 
225
+ #: ../includes/messages.php:25
226
+ msgid "You have been denied access to {sitename}."
227
+ msgstr "Du har blivit nekad åtkomst till {sitename}."
 
228
 
229
+ #: ../includes/messages.php:38
230
  msgid ""
231
  "An email has been sent to the site administrator. The administrator will "
232
  "review the information that has been submitted and either approve or deny "
233
  "your request."
234
  msgstr ""
235
+ "Ett meddelande har skickats till administratören. Administratören kommer att "
236
+ "granska dina uppgifter och därefter godkänna eller neka din ansökan."
 
237
 
238
+ #: ../includes/messages.php:40
239
  msgid ""
240
  "You will receive an email with instructions on what you will need to do "
241
  "next. Thanks for your patience."
242
  msgstr ""
243
+ "Du kommer att få ett e-postmeddelande med vidare instruktioner. Tack för "
244
+ "ditt tålamod."
 
 
 
245
 
246
+ #: ../includes/messages.php:53
 
 
 
 
 
247
  msgid ""
248
+ "Welcome to {sitename}. This site is accessible to approved users only. To be "
249
  "approved, you must first register."
250
  msgstr ""
251
+ "Välkommen till {sitename}. Den här webbplatsen är endast tillgänglig för "
252
+ "godkända användare. För att bli godkänd måste du först registrera ett konto."
253
+
254
+ #: ../includes/messages.php:66
255
+ msgid "{username} ({user_email}) has requested a username at {sitename}"
256
+ msgstr "{username} ({user_email}) har ansökt om ett konto på {sitename}"
257
 
258
+ #: ../includes/messages.php:68
259
+ msgid "To approve or deny this user access to {sitename} go to"
260
+ msgstr ""
261
+ "För att godkänna eller neka denna användaren tillgång till {sitename}, besök"
262
+
263
+ #: ../includes/messages.php:83
264
  msgid ""
265
  "After you register, your request will be sent to the site administrator for "
266
  "approval. You will then receive an email with further instructions."
267
  msgstr ""
268
+ "Efter registrering kommer din ansökan att granskas för godkännande. Du får "
269
+ "då ett e-postmeddelande med vidare instruktioner."
270
 
271
+ #: ../includes/user-list.php:120
272
+ msgid "Status"
273
+ msgstr "Status"
274
 
275
+ #: ../includes/user-list.php:156
276
+ msgid "Filter"
277
+ msgstr "Filtrera"
278
 
279
+ #: ../includes/user-list.php:161 ../includes/user-list.php:163
280
+ msgid "View all users"
281
+ msgstr "Visa alla användare"
 
 
282
 
283
+ #: ../includes/user-list.php:320
284
+ #, php-format
285
+ msgid "User denied."
286
+ msgid_plural "%s users denied."
287
+ msgstr[0] "Användaren nekad."
288
+ msgstr[1] "%s användare nekade."
289
 
290
+ #: ../includes/user-list.php:325
291
+ #, php-format
292
+ msgid "User approved."
293
+ msgid_plural "%s users approved."
294
+ msgstr[0] "Användaren godkänd."
295
+ msgstr[1] "%s användare godkända."
296
+
297
+ #: ../includes/user-list.php:349
298
+ msgid "Access Status"
299
+ msgstr "Åtkomst till webbplats"
300
+
301
+ #: ../includes/user-list.php:354
302
+ msgid "-- Status --"
303
+ msgstr "-- Status --"
304
+
305
+ #: ../includes/user-list.php:362
306
+ msgid "If user has access to sign in or not."
307
+ msgstr "Ifall användaren kan logga in eller inte."
308
+
309
+ #: ../includes/user-list.php:365
310
+ msgid "Current user status is <strong>pending</strong>."
311
+ msgstr "Status för användaren är <strong>väntar</strong>."
312
+
313
+ #~ msgid "Settings"
314
+ #~ msgstr "Inställningar"
315
+
316
+ #~ msgid "User Management"
317
+ #~ msgstr "Hantera användare"
318
+
319
+ #~ msgid "User name already exists"
320
+ #~ msgstr "Användaren finns redan"
new-user-approve.php CHANGED
@@ -4,8 +4,9 @@
4
  Plugin URI: http://www.picklewagon.com/wordpress/new-user-approve/
5
  Description: Allow administrators to approve users once they register. Only approved users will be allowed to access the site. For support, please go to the <a href="http://wordpress.org/support/plugin/new-user-approve">support forums</a> on wordpress.org.
6
  Author: Josh Harrison
7
- Version: 1.7.5
8
  Author URI: http://picklewagon.com/
 
9
  */
10
 
11
  class pw_new_user_approve {
@@ -586,7 +587,7 @@ class pw_new_user_approve {
586
  $user = new WP_User( $user_id );
587
 
588
  // send email to user telling of denial
589
- $user_email = stripslashes( $user->user_email );
590
 
591
  // format the message
592
  $message = nua_default_deny_user_message();
@@ -673,7 +674,7 @@ class pw_new_user_approve {
673
  *
674
  * @uses lostpassword_post
675
  */
676
- public function lost_password() {
677
  $is_email = strpos( $_POST['user_login'], '@' );
678
  if ( $is_email === false ) {
679
  $username = sanitize_user( $_POST['user_login'] );
@@ -684,9 +685,10 @@ class pw_new_user_approve {
684
  }
685
 
686
  if ( $user_data->pw_user_status && $user_data->pw_user_status != 'approved' ) {
687
- wp_redirect( 'wp-login.php' );
688
- exit();
689
  }
 
 
690
  }
691
 
692
  /**
4
  Plugin URI: http://www.picklewagon.com/wordpress/new-user-approve/
5
  Description: Allow administrators to approve users once they register. Only approved users will be allowed to access the site. For support, please go to the <a href="http://wordpress.org/support/plugin/new-user-approve">support forums</a> on wordpress.org.
6
  Author: Josh Harrison
7
+ Version: 1.7.6
8
  Author URI: http://picklewagon.com/
9
+ Text Domain: new-user-approve
10
  */
11
 
12
  class pw_new_user_approve {
587
  $user = new WP_User( $user_id );
588
 
589
  // send email to user telling of denial
590
+ $user_email = stripslashes( $user->data->user_email );
591
 
592
  // format the message
593
  $message = nua_default_deny_user_message();
674
  *
675
  * @uses lostpassword_post
676
  */
677
+ public function lost_password($errors) {
678
  $is_email = strpos( $_POST['user_login'], '@' );
679
  if ( $is_email === false ) {
680
  $username = sanitize_user( $_POST['user_login'] );
685
  }
686
 
687
  if ( $user_data->pw_user_status && $user_data->pw_user_status != 'approved' ) {
688
+ $errors->add( 'unapproved_user', __( '<strong>ERROR</strong>: User has not been approved.', 'new-user-approve' ) );
 
689
  }
690
+
691
+ return $errors;
692
  }
693
 
694
  /**
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: picklewagon
3
  Donate link: http://picklewagon.com/wordpress/new-user-approve/donate
4
  Tags: users, registration, sign up, user management, login
5
  Requires at least: 3.5.1
6
- Tested up to: 4.8.1
7
- Stable tag: 1.7.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -13,25 +13,15 @@ are able to login to the site.
13
 
14
  == Description ==
15
 
16
- On a normal WordPress site, once a new user registers, the user is created in
17
- the database. Then an email is sent to the new user with their login
18
- credentials. Very simple. As it should be.
19
 
20
- The New User Approve plugin modifies the registration process. When a user
21
- registers for the site, the user gets created and then an email gets sent to
22
- the administrators of the site. An administrator then is expected to either
23
- approve or deny the registration request. An email is then sent to the user
24
- indicating whether they were approved or denied. If the user has been approved,
25
- the email will include the login credentials. Until a user is approved, the
26
- user will not be able to login to the site.
27
 
28
- Only approved users will be allowed to login to site. Users waiting for approval
29
- as well as denied users will not be able to login to site.
30
 
31
  A user's status can be updated even after the initial approval/denial.
32
 
33
- Each user that exists before New User Approve has been activated will be treated as
34
- an approved user.
35
 
36
  Default WordPress registration process:
37
 
@@ -56,16 +46,13 @@ Further support at [newuserapprove.com](http://newuserapprove.com/).
56
 
57
  **Customize**
58
 
59
- New User Approve allows for customizations by using custom actions and filters. You can
60
- find out more about these by browsing the source code.
61
 
62
- A commercial plugin that adds a config panel for customization is also available at
63
- [https://newuserapprove.com/products/options-addon/](https://newuserapprove.com/products/options-addon/).
64
 
65
  == Installation ==
66
 
67
- 1. Upload new-user-approve to the wp-content/plugins directory or download from
68
- the WordPress backend (Plugins -> Add New -> search for 'new user approve')
69
  2. Activate the plugin through the Plugins menu in WordPress
70
  3. No configuration necessary.
71
 
@@ -73,24 +60,24 @@ the WordPress backend (Plugins -> Add New -> search for 'new user approve')
73
 
74
  = Why am I not getting the emails when a new user registers? =
75
 
76
- The New User Approve plugin uses the functions provided by WordPress to send
77
- email. Make sure your host is setup correctly to send email if this happens.
78
 
79
  = How do I customize the email address and/or name when sending notifications to users? =
80
 
81
- This is not a function of the plugin but of WordPress. WordPress provides the
82
- *wp_mail_from* and *wp_mail_from_name* filters to allow you to customize this.
83
- There are also a number of plugins that provide a setting to change this to
84
- your liking.
85
 
86
  * [wp mail from](http://wordpress.org/extend/plugins/wp-mailfrom/)
87
  * [Mail From](http://wordpress.org/extend/plugins/mail-from/)
88
 
89
  = What happens to the user's status after the plugin is deactivated? =
90
 
91
- If you deactivate the plugin, their status doesn't matter. The status that the
92
- plugin uses is only used by the plugin. All users will be allowed to login as long
93
- as they have their username and passwords.
 
 
 
 
94
 
95
  == Screenshots ==
96
 
@@ -102,6 +89,22 @@ as they have their username and passwords.
102
 
103
  == Changelog ==
104
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
  = 1.7.5 =
106
  * Fixed: User status filter in admin was not using database prefix
107
  * Courtesy of [Oizopower](https://github.com/Oizopower)
3
  Donate link: http://picklewagon.com/wordpress/new-user-approve/donate
4
  Tags: users, registration, sign up, user management, login
5
  Requires at least: 3.5.1
6
+ Tested up to: 4.9.6
7
+ Stable tag: 1.7.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
13
 
14
  == Description ==
15
 
16
+ On a normal WordPress site, once a new user registers, the user is created in the database. Then an email is sent to the new user with their login credentials. Very simple. As it should be.
 
 
17
 
18
+ The New User Approve plugin modifies the registration process. When a user registers for the site, the user gets created and then an email gets sent to the administrators of the site. An administrator then is expected to either approve or deny the registration request. An email is then sent to the user indicating whether they were approved or denied. If the user has been approved, the email will include the login credentials. Until a user is approved, the user will not be able to login to the site.
 
 
 
 
 
 
19
 
20
+ Only approved users will be allowed to login to site. Users waiting for approval as well as denied users will not be able to login to site.
 
21
 
22
  A user's status can be updated even after the initial approval/denial.
23
 
24
+ Each user that exists before New User Approve has been activated will be treated as an approved user.
 
25
 
26
  Default WordPress registration process:
27
 
46
 
47
  **Customize**
48
 
49
+ New User Approve allows for customizations by using custom actions and filters. You can find out more about these by browsing the source code.
 
50
 
51
+ A commercial plugin that adds a config panel for customization is also available at [https://newuserapprove.com/products/options-addon/](https://newuserapprove.com/products/options-addon/).
 
52
 
53
  == Installation ==
54
 
55
+ 1. Upload new-user-approve to the wp-content/plugins directory or download from the WordPress backend (Plugins -> Add New -> search for 'new user approve')
 
56
  2. Activate the plugin through the Plugins menu in WordPress
57
  3. No configuration necessary.
58
 
60
 
61
  = Why am I not getting the emails when a new user registers? =
62
 
63
+ The New User Approve plugin uses the functions provided by WordPress to send email. Make sure your host is setup correctly to send email if this happens.
 
64
 
65
  = How do I customize the email address and/or name when sending notifications to users? =
66
 
67
+ This is not a function of the plugin but of WordPress. WordPress provides the *wp_mail_from* and *wp_mail_from_name* filters to allow you to customize this. There are also a number of plugins that provide a setting to change this to your liking.
 
 
 
68
 
69
  * [wp mail from](http://wordpress.org/extend/plugins/wp-mailfrom/)
70
  * [Mail From](http://wordpress.org/extend/plugins/mail-from/)
71
 
72
  = What happens to the user's status after the plugin is deactivated? =
73
 
74
+ If you deactivate the plugin, their status doesn't matter. The status that the plugin uses is only used by the plugin. All users will be allowed to login as long as they have their username and passwords.
75
+
76
+ = Are there any known issues with the New User Approve plugin? =
77
+
78
+ We are aware of a few issues with multisite
79
+ 1. The status filters on users.php do not work correctly
80
+ 2. The bubble that shows next to the users link to show the number of pending users does not show
81
 
82
  == Screenshots ==
83
 
89
 
90
  == Changelog ==
91
 
92
+ = 1.7.6 =
93
+ * Fixed: Formatting of readme.txt had line breaks where they should have been
94
+ * Fixed: Fix how deny_user() gets user_email
95
+ * Courtesy of [jrequiroso](https://github.com/jrequiroso)
96
+ * https://github.com/picklewagon/new-user-approve/pull/22
97
+ * Fixed: Show unapproved user error message when the user attempts to reset password
98
+ * Updated: Swedish translations
99
+ * Courtesy of [adevade](https://github.com/adevade)
100
+ * https://github.com/picklewagon/new-user-approve/pull/59
101
+ * Updated: Updates to admin approval screen
102
+ * Courtesy of [adevade](https://github.com/adevade)
103
+ * https://github.com/picklewagon/new-user-approve/pull/60
104
+ * Added: Don't allow a super admin to be denied or approved
105
+ * https://github.com/picklewagon/new-user-approve/pull/19
106
+ * Added: readme.md to show content in github
107
+
108
  = 1.7.5 =
109
  * Fixed: User status filter in admin was not using database prefix
110
  * Courtesy of [Oizopower](https://github.com/Oizopower)