Version Description
- Added: Support for reCaptcha on default Login and Registration page.
Download this release
Release Info
Developer | wpexpertsio |
Plugin | New User Approve |
Version | 1.8.5 |
Comparing to | |
See all releases |
Code changes from version 1.8.4 to 1.8.5
- includes/messages.php +4 -4
- new-user-approve.php +3 -3
- readme.txt +4 -1
includes/messages.php
CHANGED
@@ -89,13 +89,13 @@ function nua_default_registration_message() {
|
|
89 |
}
|
90 |
|
91 |
function nua_default_registeration_welcome_email() {
|
92 |
-
$message = __('Hello,') . "\r\n\r\n";
|
93 |
|
94 |
-
$message .= __("Thank you for registering on our site. We have successfully received your request and is currently pending for approval.") . "\r\n";
|
95 |
|
96 |
-
$message .= __("The administrator will review the information that has been submitted after which they will either approve or deny your request. You will receive an email with the instructions on what you will need to do next.") . "\r\n\r\n";
|
97 |
|
98 |
-
$message .= __("Thank You");
|
99 |
|
100 |
return $message;
|
101 |
}
|
89 |
}
|
90 |
|
91 |
function nua_default_registeration_welcome_email() {
|
92 |
+
$message = __('Hello,', "new-user-approve") . "\r\n\r\n";
|
93 |
|
94 |
+
$message .= __("Thank you for registering on our site. We have successfully received your request and is currently pending for approval.", "new-user-approve") . "\r\n";
|
95 |
|
96 |
+
$message .= __("The administrator will review the information that has been submitted after which they will either approve or deny your request. You will receive an email with the instructions on what you will need to do next.", "new-user-approve") . "\r\n\r\n";
|
97 |
|
98 |
+
$message .= __("Thank You", "new-user-approve");
|
99 |
|
100 |
return $message;
|
101 |
}
|
new-user-approve.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
Plugin URI: http://newuserapprove.com/
|
6 |
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.
|
7 |
Author: NewUserApprove
|
8 |
-
Version: 1.8.
|
9 |
Author URI: https://newuserapprove.com/
|
10 |
Text Domain: new-user-approve
|
11 |
*/
|
@@ -110,7 +110,7 @@ class pw_new_user_approve
|
|
110 |
);
|
111 |
// Filters
|
112 |
add_filter( 'wp_authenticate_user', array( $this, 'authenticate_user' ) );
|
113 |
-
add_filter( 'registration_errors', array( $this, 'show_user_pending_message' ) );
|
114 |
add_filter( 'login_message', array( $this, 'welcome_user' ) );
|
115 |
add_filter(
|
116 |
'new_user_approve_validate_status_update',
|
@@ -547,7 +547,7 @@ class pw_new_user_approve
|
|
547 |
public function request_admin_approval_email( $user_login, $user_email, $errors )
|
548 |
{
|
549 |
if ( $errors->get_error_code() ) {
|
550 |
-
return;
|
551 |
}
|
552 |
$this->admin_approval_email( $user_login, $user_email );
|
553 |
}
|
5 |
Plugin URI: http://newuserapprove.com/
|
6 |
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.
|
7 |
Author: NewUserApprove
|
8 |
+
Version: 1.8.5
|
9 |
Author URI: https://newuserapprove.com/
|
10 |
Text Domain: new-user-approve
|
11 |
*/
|
110 |
);
|
111 |
// Filters
|
112 |
add_filter( 'wp_authenticate_user', array( $this, 'authenticate_user' ) );
|
113 |
+
add_filter( 'registration_errors', array( $this, 'show_user_pending_message' ), 99 );
|
114 |
add_filter( 'login_message', array( $this, 'welcome_user' ) );
|
115 |
add_filter(
|
116 |
'new_user_approve_validate_status_update',
|
547 |
public function request_admin_approval_email( $user_login, $user_email, $errors )
|
548 |
{
|
549 |
if ( $errors->get_error_code() ) {
|
550 |
+
return $errors;
|
551 |
}
|
552 |
$this->admin_approval_email( $user_login, $user_email );
|
553 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://newuserapprove.com
|
|
4 |
Tags: users, registration, sign up, user management, login, user approval
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.6
|
7 |
-
Stable tag: 1.8.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -93,6 +93,9 @@ We are aware of a few issues with multisite
|
|
93 |
|
94 |
== Changelog ==
|
95 |
|
|
|
|
|
|
|
96 |
= 1.8.4 =
|
97 |
* Added: User registeration welcome email
|
98 |
* Added: Action Hook - new_user_approve_after_registration
|
4 |
Tags: users, registration, sign up, user management, login, user approval
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.6
|
7 |
+
Stable tag: 1.8.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
93 |
|
94 |
== Changelog ==
|
95 |
|
96 |
+
= 1.8.5 =
|
97 |
+
* Added: Support for reCaptcha on default Login and Registration page.
|
98 |
+
|
99 |
= 1.8.4 =
|
100 |
* Added: User registeration welcome email
|
101 |
* Added: Action Hook - new_user_approve_after_registration
|