New User Approve - Version 1.2.6

Version Description

  • fix for 3.1 to include the deprecated code for user search
Download this release

Release Info

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

Code changes from version 1.2.5 to 1.2.6

Files changed (2) hide show
  1. new-user-approve.php +6 -2
  2. readme.txt +5 -2
new-user-approve.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin URI: http://www.picklewagon.com/wordpress/new-user-approve-wordpress-plugin/
5
  Description: This plugin allows administrators to approve users once they register. Only approved users will be allowed to access the blog.
6
  Author: Josh Harrison
7
- Version: 1.2.5
8
  Author URI: http://www.picklewagon.com/
9
  */
10
 
@@ -483,7 +483,11 @@ if (!class_exists('pw_new_user_approve')) {
483
  } // End if class exists statement
484
 
485
  if (!class_exists('WP_User_Search')) {
486
- require_once(ABSPATH . 'wp-admin/includes/user.php');
 
 
 
 
487
  }
488
  class PW_User_Search extends WP_User_Search {
489
  var $users_per_page = 999999999;
4
  Plugin URI: http://www.picklewagon.com/wordpress/new-user-approve-wordpress-plugin/
5
  Description: This plugin allows administrators to approve users once they register. Only approved users will be allowed to access the blog.
6
  Author: Josh Harrison
7
+ Version: 1.2.6
8
  Author URI: http://www.picklewagon.com/
9
  */
10
 
483
  } // End if class exists statement
484
 
485
  if (!class_exists('WP_User_Search')) {
486
+ if (version_compare($wp_version, "3.1", '>=')) {
487
+ require_once(ABSPATH . 'wp-admin/includes/deprecated.php');
488
+ } else {
489
+ require_once(ABSPATH . 'wp-admin/includes/user.php');
490
+ }
491
  }
492
  class PW_User_Search extends WP_User_Search {
493
  var $users_per_page = 999999999;
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: picklewagon
3
  Donate link: http://www.picklewagon.com/wordpress/
4
  Tags: users, registration
5
  Requires at least: 2.6
6
- Tested up to: 2.9.2
7
- Stable tag: 1.2.5
8
 
9
  New User Approve is a Wordpress plugin that allows a blog administrator to
10
  approve a user before they are able to access and login to the blog.
@@ -42,6 +42,9 @@ email. Make sure your host is setup correctly to send email if this happens.
42
 
43
  == Changelog ==
44
 
 
 
 
45
  = 1.2.5 =
46
  * add french translation
47
 
3
  Donate link: http://www.picklewagon.com/wordpress/
4
  Tags: users, registration
5
  Requires at least: 2.6
6
+ Tested up to: 3.1
7
+ Stable tag: 1.2.6
8
 
9
  New User Approve is a Wordpress plugin that allows a blog administrator to
10
  approve a user before they are able to access and login to the blog.
42
 
43
  == Changelog ==
44
 
45
+ = 1.2.6 =
46
+ * fix for 3.1 to include the deprecated code for user search
47
+
48
  = 1.2.5 =
49
  * add french translation
50