Version Description
- fix link to approve new users in email to admin
- fix bug with sending emails to new approved users
Download this release
Release Info
Developer | picklewagon |
Plugin | New User Approve |
Version | 1.5.2 |
Comparing to | |
See all releases |
Code changes from version 1.5.1 to 1.5.2
- includes/admin-approve.php +1 -1
- new-user-approve.php +5 -5
- readme.txt +5 -1
includes/admin-approve.php
CHANGED
@@ -31,7 +31,7 @@ class pw_new_user_approve_admin_approve {
|
|
31 |
private function __construct() {
|
32 |
// Actions
|
33 |
add_action( 'admin_menu', array( $this, 'admin_menu_link' ) );
|
34 |
-
add_action( 'init',
|
35 |
add_action( 'admin_notices', array( $this, 'admin_notice' ) );
|
36 |
add_action( 'admin_init', array( $this, 'notice_ignore' ) );
|
37 |
}
|
31 |
private function __construct() {
|
32 |
// Actions
|
33 |
add_action( 'admin_menu', array( $this, 'admin_menu_link' ) );
|
34 |
+
add_action( 'init', array( $this, 'process_input' ) );
|
35 |
add_action( 'admin_notices', array( $this, 'admin_notice' ) );
|
36 |
add_action( 'admin_init', array( $this, 'notice_ignore' ) );
|
37 |
}
|
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 blog. 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.5.
|
8 |
Author URI: http://www.picklewagon.com/
|
9 |
*/
|
10 |
|
@@ -325,7 +325,7 @@ class pw_new_user_approve {
|
|
325 |
$message = sprintf( __( '%1$s (%2$s) has requested a username at %3$s', 'new-user-approve' ), $user_login, $user_email, $blogname ) . "\r\n\r\n";
|
326 |
$message .= get_option( 'siteurl' ) . "\r\n\r\n";
|
327 |
$message .= sprintf( __( 'To approve or deny this user access to %s go to', 'new-user-approve' ), $blogname ) . "\r\n\r\n";
|
328 |
-
$message .=
|
329 |
|
330 |
$message = apply_filters( 'new_user_approve_request_approval_message', $message, $user_login, $user_email );
|
331 |
|
@@ -419,11 +419,11 @@ class pw_new_user_approve {
|
|
419 |
}
|
420 |
|
421 |
wp_cache_delete( $user->ID, 'users' );
|
422 |
-
wp_cache_delete( $user->user_login, 'userlogins' );
|
423 |
|
424 |
// send email to user telling of approval
|
425 |
-
$user_login = stripslashes( $user->user_login );
|
426 |
-
$user_email = stripslashes( $user->user_email );
|
427 |
|
428 |
// format the message
|
429 |
$message = sprintf( __( 'You have been approved to access %s', 'new-user-approve' ), get_option( 'blogname' ) ) . "\r\n";
|
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 blog. 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.5.2
|
8 |
Author URI: http://www.picklewagon.com/
|
9 |
*/
|
10 |
|
325 |
$message = sprintf( __( '%1$s (%2$s) has requested a username at %3$s', 'new-user-approve' ), $user_login, $user_email, $blogname ) . "\r\n\r\n";
|
326 |
$message .= get_option( 'siteurl' ) . "\r\n\r\n";
|
327 |
$message .= sprintf( __( 'To approve or deny this user access to %s go to', 'new-user-approve' ), $blogname ) . "\r\n\r\n";
|
328 |
+
$message .= admin_url( 'users.php?s&pw-status-query-submit=Filter&new_user_approve_filter=pending&paged=1' ) . "\r\n";
|
329 |
|
330 |
$message = apply_filters( 'new_user_approve_request_approval_message', $message, $user_login, $user_email );
|
331 |
|
419 |
}
|
420 |
|
421 |
wp_cache_delete( $user->ID, 'users' );
|
422 |
+
wp_cache_delete( $user->data->user_login, 'userlogins' );
|
423 |
|
424 |
// send email to user telling of approval
|
425 |
+
$user_login = stripslashes( $user->data->user_login );
|
426 |
+
$user_email = stripslashes( $user->data->user_email );
|
427 |
|
428 |
// format the message
|
429 |
$message = sprintf( __( 'You have been approved to access %s', 'new-user-approve' ), get_option( 'blogname' ) ) . "\r\n";
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://picklewagon.com/wordpress/new-user-approve/donate
|
|
4 |
Tags: users, registration, sign up, user management
|
5 |
Requires at least: 3.5.1
|
6 |
Tested up to: 3.6
|
7 |
-
Stable tag: 1.5.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -68,6 +68,10 @@ this feature.
|
|
68 |
|
69 |
== Changelog ==
|
70 |
|
|
|
|
|
|
|
|
|
71 |
= 1.5.1 =
|
72 |
* fix bug when trying to install on a site with WP 3.5.1
|
73 |
|
4 |
Tags: users, registration, sign up, user management
|
5 |
Requires at least: 3.5.1
|
6 |
Tested up to: 3.6
|
7 |
+
Stable tag: 1.5.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
68 |
|
69 |
== Changelog ==
|
70 |
|
71 |
+
= 1.5.2 =
|
72 |
+
* fix link to approve new users in email to admin
|
73 |
+
* fix bug with sending emails to new approved users
|
74 |
+
|
75 |
= 1.5.1 =
|
76 |
* fix bug when trying to install on a site with WP 3.5.1
|
77 |
|