mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Use the correct filename. Props Mark Jaquith. fixes #2815
git-svn-id: http://svn.automattic.com/wordpress/trunk@3863 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c93efa866e
commit
f94f2f0bcf
@ -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