mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Move registration.php functions to user.php. Deprecate registration.php, everything is now included by default. fixes #13761.
git-svn-id: https://develop.svn.wordpress.org/trunk@16009 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -853,7 +853,6 @@ case 'add-user' :
|
||||
check_ajax_referer( $action );
|
||||
if ( !current_user_can('create_users') )
|
||||
die('-1');
|
||||
require_once(ABSPATH . WPINC . '/registration.php');
|
||||
if ( !$user_id = add_user() )
|
||||
die('0');
|
||||
elseif ( is_wp_error( $user_id ) ) {
|
||||
|
||||
Reference in New Issue
Block a user