Version Description
- Fixed: Corrected erroneous SQL query when filtering users
- Fixed: User filters
- Courtesy of julmuell
- https://github.com/picklewagon/new-user-approve/pull/44
- Fixed: Show a user status in the filters only if at least one user has that status
Download this release
Release Info
| Developer | picklewagon |
| Plugin | |
| Version | 1.7.4 |
| Comparing to | |
| See all releases | |
Code changes from version 1.7.3 to 1.7.4
- includes/email-tags.php +38 -0
- includes/messages.php +4 -3
- includes/user-list.php +24 -14
- localization/new-user-approve-de_DE.mo +0 -0
- localization/new-user-approve-de_DE.po +36 -27
- localization/new-user-approve-ru_RU.mo +0 -0
- new-user-approve.php +1 -1
- readme.txt +26 -22
includes/email-tags.php
CHANGED
|
@@ -266,6 +266,12 @@ function nua_setup_email_tags() {
|
|
| 266 |
'function' => 'nua_email_tag_loginurl',
|
| 267 |
'context' => array( 'email' ),
|
| 268 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 269 |
array(
|
| 270 |
'tag' => 'password',
|
| 271 |
'description' => __( 'Generates the password for the user to add to the email', 'new-user-approve' ),
|
|
@@ -392,3 +398,35 @@ function nua_email_tag_password( $attributes ) {
|
|
| 392 |
return '';
|
| 393 |
}
|
| 394 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 266 |
'function' => 'nua_email_tag_loginurl',
|
| 267 |
'context' => array( 'email' ),
|
| 268 |
),
|
| 269 |
+
array(
|
| 270 |
+
'tag' => 'reset_password_url',
|
| 271 |
+
'description' => __( 'The URL for a user to set/reset their password', 'new-user-approve' ),
|
| 272 |
+
'function' => 'nua_email_tag_reset_password_url',
|
| 273 |
+
'context' => array( 'email' ),
|
| 274 |
+
),
|
| 275 |
array(
|
| 276 |
'tag' => 'password',
|
| 277 |
'description' => __( 'Generates the password for the user to add to the email', 'new-user-approve' ),
|
| 398 |
return '';
|
| 399 |
}
|
| 400 |
}
|
| 401 |
+
|
| 402 |
+
/**
|
| 403 |
+
* Email template tag: reset_password_url
|
| 404 |
+
* Generates a link to set or reset the user's password
|
| 405 |
+
*
|
| 406 |
+
* @param array $attributes
|
| 407 |
+
*
|
| 408 |
+
* @return string reset password URL
|
| 409 |
+
*/
|
| 410 |
+
function nua_email_tag_reset_password_url( $attributes ) {
|
| 411 |
+
global $wpdb;
|
| 412 |
+
|
| 413 |
+
$username = $attributes['user_login'];
|
| 414 |
+
|
| 415 |
+
// Generate something random for a password reset key.
|
| 416 |
+
$key = wp_generate_password( 20, false );
|
| 417 |
+
|
| 418 |
+
/** This action is documented in wp-login.php */
|
| 419 |
+
do_action( 'retrieve_password_key', $username, $key );
|
| 420 |
+
|
| 421 |
+
// Now insert the key, hashed, into the DB.
|
| 422 |
+
if ( empty( $wp_hasher ) ) {
|
| 423 |
+
require_once ABSPATH . WPINC . '/class-phpass.php';
|
| 424 |
+
$wp_hasher = new PasswordHash( 8, true );
|
| 425 |
+
}
|
| 426 |
+
$hashed = time() . ':' . $wp_hasher->HashPassword( $key );
|
| 427 |
+
$wpdb->update( $wpdb->users, array( 'user_activation_key' => $hashed ), array( 'user_login' => $username ) );
|
| 428 |
+
|
| 429 |
+
$url = network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($username), 'login');
|
| 430 |
+
|
| 431 |
+
return $url;
|
| 432 |
+
}
|
includes/messages.php
CHANGED
|
@@ -7,9 +7,10 @@
|
|
| 7 |
*/
|
| 8 |
function nua_default_approve_user_message() {
|
| 9 |
$message = __( 'You have been approved to access {sitename}', 'new-user-approve' ) . "\r\n\r\n";
|
| 10 |
-
$message .= "{username}\r\n";
|
| 11 |
-
$message .= "{
|
| 12 |
-
|
|
|
|
| 13 |
|
| 14 |
$message = apply_filters( 'new_user_approve_approve_user_message_default', $message );
|
| 15 |
|
| 7 |
*/
|
| 8 |
function nua_default_approve_user_message() {
|
| 9 |
$message = __( 'You have been approved to access {sitename}', 'new-user-approve' ) . "\r\n\r\n";
|
| 10 |
+
$message .= "{username}\r\n\r\n";
|
| 11 |
+
$message .= "{login_url}\r\n\r\n";
|
| 12 |
+
$message .= __( 'To set or reset your password, visit the following address:', 'new-user-approve' ) . "\r\n\r\n";
|
| 13 |
+
$message .= "{reset_password_url}";
|
| 14 |
|
| 15 |
$message = apply_filters( 'new_user_approve_approve_user_message_default', $message );
|
| 16 |
|
includes/user-list.php
CHANGED
|
@@ -24,7 +24,7 @@ class pw_new_user_approve_user_list {
|
|
| 24 |
private function __construct() {
|
| 25 |
// Actions
|
| 26 |
add_action( 'load-users.php', array( $this, 'update_action' ) );
|
| 27 |
-
add_action( 'restrict_manage_users', array( $this, 'status_filter' ) );
|
| 28 |
add_action( 'pre_user_query', array( $this, 'filter_by_status' ) );
|
| 29 |
add_action( 'admin_footer-users.php', array( $this, 'admin_footer' ) );
|
| 30 |
add_action( 'load-users.php', array( $this, 'bulk_action' ) );
|
|
@@ -161,19 +161,21 @@ class pw_new_user_approve_user_list {
|
|
| 161 |
*
|
| 162 |
* @uses restrict_manage_users
|
| 163 |
*/
|
| 164 |
-
public function status_filter() {
|
|
|
|
|
|
|
| 165 |
$filter_button = submit_button( __( 'Filter', 'new-user-approve' ), 'button', 'pw-status-query-submit', false, array( 'id' => 'pw-status-query-submit' ) );
|
| 166 |
-
$filtered_status =
|
| 167 |
|
| 168 |
?>
|
| 169 |
-
<label class="screen-reader-text"
|
| 170 |
-
|
| 171 |
-
<select id="new_user_approve_filter" name="new_user_approve_filter" style="float: none; margin: 0 0 0 15px;">
|
| 172 |
<option value=""><?php _e( 'View all users', 'new-user-approve' ); ?></option>
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
<?php
|
|
|
|
| 177 |
</select>
|
| 178 |
<?php echo apply_filters( 'new_user_approve_filter_button', $filter_button ); ?>
|
| 179 |
<style>
|
|
@@ -203,10 +205,10 @@ class pw_new_user_approve_user_list {
|
|
| 203 |
return;
|
| 204 |
}
|
| 205 |
|
| 206 |
-
if (
|
| 207 |
-
$filter =
|
| 208 |
|
| 209 |
-
$query->query_from .= " INNER JOIN {$wpdb->usermeta}
|
| 210 |
|
| 211 |
if ( 'approved' == $filter ) {
|
| 212 |
$query->query_fields = "DISTINCT SQL_CALC_FOUND_ROWS {$wpdb->users}.ID";
|
|
@@ -218,6 +220,14 @@ class pw_new_user_approve_user_list {
|
|
| 218 |
}
|
| 219 |
}
|
| 220 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 221 |
/**
|
| 222 |
* Use javascript to add the ability to bulk modify the status of users.
|
| 223 |
*
|
|
@@ -270,7 +280,7 @@ class pw_new_user_approve_user_list {
|
|
| 270 |
return;
|
| 271 |
}
|
| 272 |
|
| 273 |
-
$sendback = remove_query_arg( array( 'approved', 'denied', 'deleted', 'ids', 'new_user_approve_filter', 'pw-status-query-submit', 'new_role' ), wp_get_referer() );
|
| 274 |
if ( !$sendback ) {
|
| 275 |
$sendback = admin_url( 'users.php' );
|
| 276 |
}
|
| 24 |
private function __construct() {
|
| 25 |
// Actions
|
| 26 |
add_action( 'load-users.php', array( $this, 'update_action' ) );
|
| 27 |
+
add_action( 'restrict_manage_users', array( $this, 'status_filter' ), 10, 1 );
|
| 28 |
add_action( 'pre_user_query', array( $this, 'filter_by_status' ) );
|
| 29 |
add_action( 'admin_footer-users.php', array( $this, 'admin_footer' ) );
|
| 30 |
add_action( 'load-users.php', array( $this, 'bulk_action' ) );
|
| 161 |
*
|
| 162 |
* @uses restrict_manage_users
|
| 163 |
*/
|
| 164 |
+
public function status_filter( $which ) {
|
| 165 |
+
$id = 'new_user_approve_filter-' . $which;
|
| 166 |
+
|
| 167 |
$filter_button = submit_button( __( 'Filter', 'new-user-approve' ), 'button', 'pw-status-query-submit', false, array( 'id' => 'pw-status-query-submit' ) );
|
| 168 |
+
$filtered_status = $this->selected_status();
|
| 169 |
|
| 170 |
?>
|
| 171 |
+
<label class="screen-reader-text" for="<?php echo $id ?>"><?php _e( 'View all users', 'new-user-approve' ); ?></label>
|
| 172 |
+
<select id="<?php echo $id ?>" name="<?php echo $id ?>" style="float: none; margin: 0 0 0 15px;">
|
|
|
|
| 173 |
<option value=""><?php _e( 'View all users', 'new-user-approve' ); ?></option>
|
| 174 |
+
<?php foreach ( pw_new_user_approve()->get_user_statuses() as $status => $users ) : ?>
|
| 175 |
+
<?php if ( count( $users ) ) : ?>
|
| 176 |
+
<option value="<?php echo esc_attr( $status ); ?>"<?php selected( $status, $filtered_status ); ?>><?php echo esc_html( $status ); ?></option>
|
| 177 |
+
<?php endif; ?>
|
| 178 |
+
<?php endforeach; ?>
|
| 179 |
</select>
|
| 180 |
<?php echo apply_filters( 'new_user_approve_filter_button', $filter_button ); ?>
|
| 181 |
<style>
|
| 205 |
return;
|
| 206 |
}
|
| 207 |
|
| 208 |
+
if ( $this->selected_status() != null ) {
|
| 209 |
+
$filter = $this->selected_status();
|
| 210 |
|
| 211 |
+
$query->query_from .= " INNER JOIN {$wpdb->usermeta} ON ( {$wpdb->users}.ID = wp_usermeta.user_id )";
|
| 212 |
|
| 213 |
if ( 'approved' == $filter ) {
|
| 214 |
$query->query_fields = "DISTINCT SQL_CALC_FOUND_ROWS {$wpdb->users}.ID";
|
| 220 |
}
|
| 221 |
}
|
| 222 |
|
| 223 |
+
private function selected_status() {
|
| 224 |
+
if ( ! empty( $_REQUEST['new_user_approve_filter-top'] ) || ! empty( $_REQUEST['new_user_approve_filter-bottom'] ) ) {
|
| 225 |
+
return esc_attr( ( ! empty( $_REQUEST['new_user_approve_filter-top'] ) ) ? $_REQUEST['new_user_approve_filter-top'] : $_REQUEST['new_user_approve_filter-bottom'] );
|
| 226 |
+
}
|
| 227 |
+
|
| 228 |
+
return null;
|
| 229 |
+
}
|
| 230 |
+
|
| 231 |
/**
|
| 232 |
* Use javascript to add the ability to bulk modify the status of users.
|
| 233 |
*
|
| 280 |
return;
|
| 281 |
}
|
| 282 |
|
| 283 |
+
$sendback = remove_query_arg( array( 'approved', 'denied', 'deleted', 'ids', 'new_user_approve_filter', 'new_user_approve_filter2', 'pw-status-query-submit', 'new_role' ), wp_get_referer() );
|
| 284 |
if ( !$sendback ) {
|
| 285 |
$sendback = admin_url( 'users.php' );
|
| 286 |
}
|
localization/new-user-approve-de_DE.mo
CHANGED
|
Binary file
|
localization/new-user-approve-de_DE.po
CHANGED
|
@@ -8,20 +8,21 @@ msgstr ""
|
|
| 8 |
"Project-Id-Version: NUA\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:
|
| 12 |
"Last-Translator: Josh Harrison <josh@picklewagon.com>\n"
|
| 13 |
"Language-Team: FatCow <zhr@tut.by>\n"
|
| 14 |
-
"Language:
|
| 15 |
"MIME-Version: 1.0\n"
|
| 16 |
-
"Content-Type: text/plain; charset=
|
| 17 |
"Content-Transfer-Encoding: 8bit\n"
|
| 18 |
-
"X-Poedit-SourceCharset:
|
| 19 |
-
"X-Generator: Poedit 1.5.
|
|
|
|
| 20 |
|
| 21 |
#: ../new-user-approve.php:98
|
| 22 |
#, php-format
|
| 23 |
msgid "New User Approve requires WordPress %s or newer."
|
| 24 |
-
msgstr ""
|
| 25 |
|
| 26 |
#: ../new-user-approve.php:145
|
| 27 |
#, php-format
|
|
@@ -30,15 +31,21 @@ msgid ""
|
|
| 30 |
"to work correctly. <a href=\"%1$s\">Update in settings</a>. | <a href=\"%2$s"
|
| 31 |
"\">Hide Notice</a>"
|
| 32 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
#: ../new-user-approve.php:257
|
| 35 |
msgid "<strong>ERROR</strong>: Your account is still pending approval."
|
| 36 |
msgstr ""
|
|
|
|
| 37 |
|
| 38 |
#: ../new-user-approve.php:260
|
| 39 |
msgid ""
|
| 40 |
"<strong>ERROR</strong>: Your account has been denied access to this site."
|
| 41 |
msgstr ""
|
|
|
|
|
|
|
| 42 |
|
| 43 |
#: ../new-user-approve.php:362
|
| 44 |
msgid "Users"
|
|
@@ -55,6 +62,8 @@ msgid ""
|
|
| 55 |
"<strong>ERROR</strong>: Couldn’t register you... please contact the <a "
|
| 56 |
"href=\"mailto:%s\">webmaster</a> !"
|
| 57 |
msgstr ""
|
|
|
|
|
|
|
| 58 |
|
| 59 |
#: ../new-user-approve.php:520
|
| 60 |
#, php-format
|
|
@@ -139,11 +148,13 @@ msgid ""
|
|
| 139 |
"You can now update user status on the <a href=\"%1$s\">users admin page</a>. "
|
| 140 |
"| <a href=\"%2$s\">Hide Notice</a>"
|
| 141 |
msgstr ""
|
|
|
|
|
|
|
| 142 |
|
| 143 |
#: ../includes/admin-approve.php:220
|
| 144 |
#, fuzzy
|
| 145 |
msgid "Approve Users"
|
| 146 |
-
msgstr "
|
| 147 |
|
| 148 |
#: ../includes/admin-approve.php:221
|
| 149 |
msgid "Updates"
|
|
@@ -159,7 +170,7 @@ msgstr ""
|
|
| 159 |
|
| 160 |
#: ../includes/admin-approve.php:231
|
| 161 |
msgid "Users Pending Approval"
|
| 162 |
-
msgstr "
|
| 163 |
|
| 164 |
#: ../includes/admin-approve.php:233
|
| 165 |
msgid "Approved Users"
|
|
@@ -171,31 +182,31 @@ msgstr "Abgelehnte Benutzer"
|
|
| 171 |
|
| 172 |
#: ../includes/email-tags.php:235
|
| 173 |
msgid "The user's username on the site as well as the Username label"
|
| 174 |
-
msgstr ""
|
| 175 |
|
| 176 |
#: ../includes/email-tags.php:241
|
| 177 |
msgid "The user's email address"
|
| 178 |
-
msgstr ""
|
| 179 |
|
| 180 |
#: ../includes/email-tags.php:247
|
| 181 |
msgid "Your site name"
|
| 182 |
-
msgstr ""
|
| 183 |
|
| 184 |
#: ../includes/email-tags.php:253
|
| 185 |
msgid "Your site URL"
|
| 186 |
-
msgstr ""
|
| 187 |
|
| 188 |
#: ../includes/email-tags.php:259
|
| 189 |
msgid "The URL to approve/deny users"
|
| 190 |
-
msgstr ""
|
| 191 |
|
| 192 |
#: ../includes/email-tags.php:265
|
| 193 |
msgid "The URL to login to the site"
|
| 194 |
-
msgstr ""
|
| 195 |
|
| 196 |
#: ../includes/email-tags.php:271
|
| 197 |
msgid "Generates the password for the user to add to the email"
|
| 198 |
-
msgstr ""
|
| 199 |
|
| 200 |
#: ../includes/email-tags.php:299
|
| 201 |
#, php-format
|
|
@@ -208,9 +219,8 @@ msgid "Password: %s"
|
|
| 208 |
msgstr "Passwort: %s"
|
| 209 |
|
| 210 |
#: ../includes/messages.php:9
|
| 211 |
-
#, fuzzy
|
| 212 |
msgid "You have been approved to access {sitename}"
|
| 213 |
-
msgstr "Ihnen wurde der Zugang
|
| 214 |
|
| 215 |
#: ../includes/messages.php:25
|
| 216 |
#, fuzzy
|
|
@@ -235,13 +245,12 @@ msgstr ""
|
|
| 235 |
"Ihr Verständnis."
|
| 236 |
|
| 237 |
#: ../includes/messages.php:53
|
| 238 |
-
#, fuzzy
|
| 239 |
msgid ""
|
| 240 |
"Welcome to {sitename}. This site is accessible to approved users only. To be "
|
| 241 |
"approved, you must first register."
|
| 242 |
msgstr ""
|
| 243 |
-
"Willkommen auf
|
| 244 |
-
"Für einen Zugriff müssen Sie sich zunächst registrieren."
|
| 245 |
|
| 246 |
#: ../includes/messages.php:66
|
| 247 |
#, fuzzy
|
|
@@ -272,7 +281,7 @@ msgstr ""
|
|
| 272 |
|
| 273 |
#: ../includes/user-list.php:161 ../includes/user-list.php:163
|
| 274 |
msgid "View all users"
|
| 275 |
-
msgstr ""
|
| 276 |
|
| 277 |
#: ../includes/user-list.php:320
|
| 278 |
#, fuzzy, php-format
|
|
@@ -282,15 +291,15 @@ msgstr[0] "abgelehnt"
|
|
| 282 |
msgstr[1] "abgelehnt"
|
| 283 |
|
| 284 |
#: ../includes/user-list.php:325
|
| 285 |
-
#,
|
| 286 |
msgid "User approved."
|
| 287 |
msgid_plural "%s users approved."
|
| 288 |
-
msgstr[0] "
|
| 289 |
-
msgstr[1] "
|
| 290 |
|
| 291 |
#: ../includes/user-list.php:349
|
| 292 |
msgid "Access Status"
|
| 293 |
-
msgstr ""
|
| 294 |
|
| 295 |
#: ../includes/user-list.php:354
|
| 296 |
msgid "-- Status --"
|
|
@@ -298,11 +307,11 @@ msgstr ""
|
|
| 298 |
|
| 299 |
#: ../includes/user-list.php:362
|
| 300 |
msgid "If user has access to sign in or not."
|
| 301 |
-
msgstr ""
|
| 302 |
|
| 303 |
#: ../includes/user-list.php:365
|
| 304 |
msgid "Current user status is <strong>pending</strong>."
|
| 305 |
-
msgstr ""
|
| 306 |
|
| 307 |
#~ msgid "Settings"
|
| 308 |
#~ msgstr "Einstellungen"
|
| 8 |
"Project-Id-Version: NUA\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: 2015-01-28 06:12+0100\n"
|
| 12 |
"Last-Translator: Josh Harrison <josh@picklewagon.com>\n"
|
| 13 |
"Language-Team: FatCow <zhr@tut.by>\n"
|
| 14 |
+
"Language: de_DE\n"
|
| 15 |
"MIME-Version: 1.0\n"
|
| 16 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
| 17 |
"Content-Transfer-Encoding: 8bit\n"
|
| 18 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
| 19 |
+
"X-Generator: Poedit 1.5.4\n"
|
| 20 |
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
| 21 |
|
| 22 |
#: ../new-user-approve.php:98
|
| 23 |
#, php-format
|
| 24 |
msgid "New User Approve requires WordPress %s or newer."
|
| 25 |
+
msgstr "New User Approve benötigt WordPress %s oder neuer."
|
| 26 |
|
| 27 |
#: ../new-user-approve.php:145
|
| 28 |
#, php-format
|
| 31 |
"to work correctly. <a href=\"%1$s\">Update in settings</a>. | <a href=\"%2$s"
|
| 32 |
"\">Hide Notice</a>"
|
| 33 |
msgstr ""
|
| 34 |
+
"Die Registrierung für Jedermann muss eingeschaltet sein damit dieses Plugin "
|
| 35 |
+
"funktioniert. <a href=\"%1$s\">Einstellung ändern</a>. | <a href=\"%2$s"
|
| 36 |
+
"\">Meldung verbergen</a>"
|
| 37 |
|
| 38 |
#: ../new-user-approve.php:257
|
| 39 |
msgid "<strong>ERROR</strong>: Your account is still pending approval."
|
| 40 |
msgstr ""
|
| 41 |
+
"<strong>FEHLER</strong>: Ihre Registrierung ist noch nicht freigschaltet."
|
| 42 |
|
| 43 |
#: ../new-user-approve.php:260
|
| 44 |
msgid ""
|
| 45 |
"<strong>ERROR</strong>: Your account has been denied access to this site."
|
| 46 |
msgstr ""
|
| 47 |
+
"<strong>FEHLER</strong>: Ihre Registrierung auf dieser Seite wurde "
|
| 48 |
+
"verweigert."
|
| 49 |
|
| 50 |
#: ../new-user-approve.php:362
|
| 51 |
msgid "Users"
|
| 62 |
"<strong>ERROR</strong>: Couldn’t register you... please contact the <a "
|
| 63 |
"href=\"mailto:%s\">webmaster</a> !"
|
| 64 |
msgstr ""
|
| 65 |
+
"<strong>FEHLER</strong>: Konnte die Registrierung nicht vornehmen... Bitte "
|
| 66 |
+
"kontaktieren Sie <a href=\"mailto:%s\">den Administrator</a>!"
|
| 67 |
|
| 68 |
#: ../new-user-approve.php:520
|
| 69 |
#, php-format
|
| 148 |
"You can now update user status on the <a href=\"%1$s\">users admin page</a>. "
|
| 149 |
"| <a href=\"%2$s\">Hide Notice</a>"
|
| 150 |
msgstr ""
|
| 151 |
+
"Sie können den Benutzerstatus bei den <a href=\"%1$s\">Benutzer-"
|
| 152 |
+
"Einstellungen</a> ändern. | <a href=\"%2$s\">Meldung ausblenden</a>"
|
| 153 |
|
| 154 |
#: ../includes/admin-approve.php:220
|
| 155 |
#, fuzzy
|
| 156 |
msgid "Approve Users"
|
| 157 |
+
msgstr "Benutzer zulassen"
|
| 158 |
|
| 159 |
#: ../includes/admin-approve.php:221
|
| 160 |
msgid "Updates"
|
| 170 |
|
| 171 |
#: ../includes/admin-approve.php:231
|
| 172 |
msgid "Users Pending Approval"
|
| 173 |
+
msgstr "Auf Freischaltung wartende Benutzer"
|
| 174 |
|
| 175 |
#: ../includes/admin-approve.php:233
|
| 176 |
msgid "Approved Users"
|
| 182 |
|
| 183 |
#: ../includes/email-tags.php:235
|
| 184 |
msgid "The user's username on the site as well as the Username label"
|
| 185 |
+
msgstr "Der Benutzername auf der Website"
|
| 186 |
|
| 187 |
#: ../includes/email-tags.php:241
|
| 188 |
msgid "The user's email address"
|
| 189 |
+
msgstr "Die E-Mail-Adresse des Benutzers"
|
| 190 |
|
| 191 |
#: ../includes/email-tags.php:247
|
| 192 |
msgid "Your site name"
|
| 193 |
+
msgstr "Der Name Ihrer Website"
|
| 194 |
|
| 195 |
#: ../includes/email-tags.php:253
|
| 196 |
msgid "Your site URL"
|
| 197 |
+
msgstr "Die URL Ihrer Website"
|
| 198 |
|
| 199 |
#: ../includes/email-tags.php:259
|
| 200 |
msgid "The URL to approve/deny users"
|
| 201 |
+
msgstr "Die URL zum Freischalten/Ablehnen von Benutzern"
|
| 202 |
|
| 203 |
#: ../includes/email-tags.php:265
|
| 204 |
msgid "The URL to login to the site"
|
| 205 |
+
msgstr "Die URL zum Login auf Ihrer Website"
|
| 206 |
|
| 207 |
#: ../includes/email-tags.php:271
|
| 208 |
msgid "Generates the password for the user to add to the email"
|
| 209 |
+
msgstr "Erzeugt ein Passwort für den Benutzer um es der E-Mail hinzuzufügen"
|
| 210 |
|
| 211 |
#: ../includes/email-tags.php:299
|
| 212 |
#, php-format
|
| 219 |
msgstr "Passwort: %s"
|
| 220 |
|
| 221 |
#: ../includes/messages.php:9
|
|
|
|
| 222 |
msgid "You have been approved to access {sitename}"
|
| 223 |
+
msgstr "Ihnen wurde der Zugang zu {sitename} freigeschaltet"
|
| 224 |
|
| 225 |
#: ../includes/messages.php:25
|
| 226 |
#, fuzzy
|
| 245 |
"Ihr Verständnis."
|
| 246 |
|
| 247 |
#: ../includes/messages.php:53
|
|
|
|
| 248 |
msgid ""
|
| 249 |
"Welcome to {sitename}. This site is accessible to approved users only. To be "
|
| 250 |
"approved, you must first register."
|
| 251 |
msgstr ""
|
| 252 |
+
"Willkommen auf {sitename}. Diese Seite ist nur registrierten Benutzern "
|
| 253 |
+
"zugänglich. Für einen Zugriff müssen Sie sich zunächst registrieren."
|
| 254 |
|
| 255 |
#: ../includes/messages.php:66
|
| 256 |
#, fuzzy
|
| 281 |
|
| 282 |
#: ../includes/user-list.php:161 ../includes/user-list.php:163
|
| 283 |
msgid "View all users"
|
| 284 |
+
msgstr "Alle Benutzer anzeigen"
|
| 285 |
|
| 286 |
#: ../includes/user-list.php:320
|
| 287 |
#, fuzzy, php-format
|
| 291 |
msgstr[1] "abgelehnt"
|
| 292 |
|
| 293 |
#: ../includes/user-list.php:325
|
| 294 |
+
#, php-format
|
| 295 |
msgid "User approved."
|
| 296 |
msgid_plural "%s users approved."
|
| 297 |
+
msgstr[0] "Benutzer akzeptiert."
|
| 298 |
+
msgstr[1] "%s Benutzer akzeptiert."
|
| 299 |
|
| 300 |
#: ../includes/user-list.php:349
|
| 301 |
msgid "Access Status"
|
| 302 |
+
msgstr "Zugriffs-Status"
|
| 303 |
|
| 304 |
#: ../includes/user-list.php:354
|
| 305 |
msgid "-- Status --"
|
| 307 |
|
| 308 |
#: ../includes/user-list.php:362
|
| 309 |
msgid "If user has access to sign in or not."
|
| 310 |
+
msgstr "Ob der Benutzer sich anmelden darf oder nicht."
|
| 311 |
|
| 312 |
#: ../includes/user-list.php:365
|
| 313 |
msgid "Current user status is <strong>pending</strong>."
|
| 314 |
+
msgstr "Aktueller Benutzer-Status ist <strong>wartend</strong>."
|
| 315 |
|
| 316 |
#~ msgid "Settings"
|
| 317 |
#~ msgstr "Einstellungen"
|
localization/new-user-approve-ru_RU.mo
ADDED
|
Binary file
|
new-user-approve.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 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.
|
| 8 |
Author URI: http://picklewagon.com/
|
| 9 |
*/
|
| 10 |
|
| 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.4
|
| 8 |
Author URI: http://picklewagon.com/
|
| 9 |
*/
|
| 10 |
|
readme.txt
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
-
===
|
| 2 |
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.
|
| 7 |
-
Stable tag: 1.7.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -14,15 +14,15 @@ are able to login to the site.
|
|
| 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
|
|
@@ -50,9 +50,17 @@ WordPress registration process with New User Approve plugin activated:
|
|
| 50 |
5. Email is sent to user. If approved, email will include login credentials.
|
| 51 |
6. User logs in to site using login credentials.
|
| 52 |
|
| 53 |
-
[
|
| 54 |
|
| 55 |
-
[newuserapprove.com](http://newuserapprove.com/)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
|
| 57 |
== Installation ==
|
| 58 |
|
|
@@ -72,23 +80,12 @@ email. Make sure your host is setup correctly to send email if this happens.
|
|
| 72 |
|
| 73 |
This is not a function of the plugin but of WordPress. WordPress provides the
|
| 74 |
*wp_mail_from* and *wp_mail_from_name* filters to allow you to customize this.
|
| 75 |
-
There are also a number of plugins that provide a setting to change this to
|
| 76 |
your liking.
|
| 77 |
|
| 78 |
* [wp mail from](http://wordpress.org/extend/plugins/wp-mailfrom/)
|
| 79 |
* [Mail From](http://wordpress.org/extend/plugins/mail-from/)
|
| 80 |
|
| 81 |
-
= Why is the password reset when approving a user? =
|
| 82 |
-
|
| 83 |
-
The password is generated again because, by default, the user will not be aware
|
| 84 |
-
of their password. By generating a new password, the email that notifies the
|
| 85 |
-
user can also give them the new password just like the email does when receiving
|
| 86 |
-
your password on a regular WordPress install. At approval time, it is impossible
|
| 87 |
-
to retrieve the user's password.
|
| 88 |
-
|
| 89 |
-
There is a filter available (new_user_approve_bypass_password_reset) to turn off
|
| 90 |
-
this feature.
|
| 91 |
-
|
| 92 |
= What happens to the user's status after the plugin is deactivated? =
|
| 93 |
|
| 94 |
If you deactivate the plugin, their status doesn't matter. The status that the
|
|
@@ -105,6 +102,13 @@ as they have their username and passwords.
|
|
| 105 |
|
| 106 |
== Changelog ==
|
| 107 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 108 |
= 1.7.3 =
|
| 109 |
* place content in metaboxes in place of dynamically pulling from website
|
| 110 |
* tested with WordPress 4.3.1
|
| 1 |
+
=== New User Approve ===
|
| 2 |
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.6.1
|
| 7 |
+
Stable tag: 1.7.4
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 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
|
| 50 |
5. Email is sent to user. If approved, email will include login credentials.
|
| 51 |
6. User logs in to site using login credentials.
|
| 52 |
|
| 53 |
+
**[Follow New User Approve on Github](https://github.com/picklewagon/new-user-approve)**
|
| 54 |
|
| 55 |
+
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 |
|
| 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
|
| 102 |
|
| 103 |
== Changelog ==
|
| 104 |
|
| 105 |
+
= 1.7.4 =
|
| 106 |
+
* Fixed: Corrected erroneous SQL query when filtering users
|
| 107 |
+
* Fixed: User filters
|
| 108 |
+
* Courtesy of [julmuell](https://github.com/julmuell)
|
| 109 |
+
* https://github.com/picklewagon/new-user-approve/pull/44
|
| 110 |
+
* Fixed: Show a user status in the filters only if at least one user has that status
|
| 111 |
+
|
| 112 |
= 1.7.3 =
|
| 113 |
* place content in metaboxes in place of dynamically pulling from website
|
| 114 |
* tested with WordPress 4.3.1
|
