Version Description
- allow approval from legacy page
Download this release
Release Info
Developer | picklewagon |
Plugin | New User Approve |
Version | 1.5.5 |
Comparing to | |
See all releases |
Code changes from version 1.5.4 to 1.5.5
- includes/admin-approve.php +5 -1
- new-user-approve.php +2 -2
- readme.txt +4 -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( '
|
35 |
add_action( 'admin_notices', array( $this, 'admin_notice' ) );
|
36 |
add_action( 'admin_init', array( $this, 'notice_ignore' ) );
|
37 |
}
|
@@ -125,10 +125,14 @@ class pw_new_user_approve_admin_approve {
|
|
125 |
|
126 |
if ( $approve ) {
|
127 |
$approve_link = get_option( 'siteurl' ) . '/wp-admin/users.php?page=' . $this->_admin_page . '&user=' . $user->ID . '&status=approve';
|
|
|
|
|
128 |
$approve_link = wp_nonce_url( $approve_link, 'pw_new_user_approve_action_' . get_class( $this ) );
|
129 |
}
|
130 |
if ( $deny ) {
|
131 |
$deny_link = get_option( 'siteurl' ) . '/wp-admin/users.php?page=' . $this->_admin_page . '&user=' . $user->ID . '&status=deny';
|
|
|
|
|
132 |
$deny_link = wp_nonce_url( $deny_link, 'pw_new_user_approve_action_' . get_class( $this ) );
|
133 |
}
|
134 |
|
31 |
private function __construct() {
|
32 |
// Actions
|
33 |
add_action( 'admin_menu', array( $this, 'admin_menu_link' ) );
|
34 |
+
add_action( 'admin_init', array( $this, 'process_input' ) );
|
35 |
add_action( 'admin_notices', array( $this, 'admin_notice' ) );
|
36 |
add_action( 'admin_init', array( $this, 'notice_ignore' ) );
|
37 |
}
|
125 |
|
126 |
if ( $approve ) {
|
127 |
$approve_link = get_option( 'siteurl' ) . '/wp-admin/users.php?page=' . $this->_admin_page . '&user=' . $user->ID . '&status=approve';
|
128 |
+
if ( isset( $_REQUEST['tab'] ) )
|
129 |
+
$approve_link = add_query_arg( array( 'tab' => esc_attr( $_REQUEST['tab'] ) ), $approve_link );
|
130 |
$approve_link = wp_nonce_url( $approve_link, 'pw_new_user_approve_action_' . get_class( $this ) );
|
131 |
}
|
132 |
if ( $deny ) {
|
133 |
$deny_link = get_option( 'siteurl' ) . '/wp-admin/users.php?page=' . $this->_admin_page . '&user=' . $user->ID . '&status=deny';
|
134 |
+
if ( isset( $_REQUEST['tab'] ) )
|
135 |
+
$deny_link = add_query_arg( 'tab', esc_attr( $_REQUEST['tab'] ), $deny_link );
|
136 |
$deny_link = wp_nonce_url( $deny_link, 'pw_new_user_approve_action_' . get_class( $this ) );
|
137 |
}
|
138 |
|
new-user-approve.php
CHANGED
@@ -4,8 +4,8 @@
|
|
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://
|
9 |
*/
|
10 |
|
11 |
class pw_new_user_approve {
|
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.5
|
8 |
+
Author URI: http://picklewagon.com/
|
9 |
*/
|
10 |
|
11 |
class pw_new_user_approve {
|
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,9 @@ this feature.
|
|
68 |
|
69 |
== Changelog ==
|
70 |
|
|
|
|
|
|
|
71 |
= 1.5.4 =
|
72 |
* fix bug that prevents emails from being sent to admins
|
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.5
|
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.5 =
|
72 |
+
* allow approval from legacy page
|
73 |
+
|
74 |
= 1.5.4 =
|
75 |
* fix bug that prevents emails from being sent to admins
|
76 |
|