Ticket #2815: upgrade_functions.diff
File upgrade_functions.diff, 1.1 KB (added by , 18 years ago) |
---|
-
admin-ajax.php
212 212 case 'add-user' : 213 213 if ( !current_user_can('edit_users') ) 214 214 die('-1'); 215 require_once( ABSPATH . WPINC . '/registration-functions.php');215 require_once(ABSPATH . WPINC . '/registration.php'); 216 216 $user_id = add_user(); 217 217 if ( is_wp_error( $user_id ) ) { 218 218 foreach( $user_id->get_error_messages() as $message ) -
upgrade-functions.php
5 5 require_once(ABSPATH . '/wp-admin/admin-functions.php'); 6 6 require_once(ABSPATH . '/wp-admin/admin-db.php'); 7 7 require_once(ABSPATH . '/wp-admin/upgrade-schema.php'); 8 require_once(ABSPATH . '/wp-includes/registration-functions.php');8 require_once(ABSPATH . WPINC . '/registration.php'); 9 9 10 10 if ( !function_exists('wp_install') ) : 11 11 function wp_install($blog_title, $user_name, $user_email, $public, $meta='') {