Use the correct filename. Props Mark Jaquith. fixes #2815
git-svn-id: https://develop.svn.wordpress.org/trunk@3863 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
216546a0b8
commit
4a2d5de79f
@ -212,7 +212,7 @@ case 'update-meta' :
|
||||
case 'add-user' :
|
||||
if ( !current_user_can('edit_users') )
|
||||
die('-1');
|
||||
require_once( ABSPATH . WPINC . '/registration-functions.php');
|
||||
require_once(ABSPATH . WPINC . '/registration.php');
|
||||
$user_id = add_user();
|
||||
if ( is_wp_error( $user_id ) ) {
|
||||
foreach( $user_id->get_error_messages() as $message )
|
||||
|
@ -5,7 +5,7 @@ if ( file_exists(ABSPATH . 'wp-content/install.php') )
|
||||
require_once(ABSPATH . '/wp-admin/admin-functions.php');
|
||||
require_once(ABSPATH . '/wp-admin/admin-db.php');
|
||||
require_once(ABSPATH . '/wp-admin/upgrade-schema.php');
|
||||
require_once(ABSPATH . '/wp-includes/registration-functions.php');
|
||||
require_once(ABSPATH . WPINC . '/registration.php');
|
||||
|
||||
if ( !function_exists('wp_install') ) :
|
||||
function wp_install($blog_title, $user_name, $user_email, $public, $meta='') {
|
||||
|
Loading…
Reference in New Issue
Block a user