Make WordPress Core

Ticket #2815: upgrade_functions.diff

File upgrade_functions.diff, 1.1 KB (added by markjaquith, 18 years ago)

upgrade_functions

  • admin-ajax.php

     
    212212case 'add-user' :
    213213        if ( !current_user_can('edit_users') )
    214214                die('-1');
    215         require_once( ABSPATH . WPINC . '/registration-functions.php');
     215        require_once(ABSPATH . WPINC . '/registration.php');
    216216        $user_id = add_user();
    217217        if ( is_wp_error( $user_id ) ) {
    218218                foreach( $user_id->get_error_messages() as $message )
  • upgrade-functions.php

     
    55require_once(ABSPATH . '/wp-admin/admin-functions.php');
    66require_once(ABSPATH . '/wp-admin/admin-db.php');
    77require_once(ABSPATH . '/wp-admin/upgrade-schema.php');
    8 require_once(ABSPATH . '/wp-includes/registration-functions.php');
     8require_once(ABSPATH . WPINC . '/registration.php');
    99
    1010if ( !function_exists('wp_install') ) :
    1111function wp_install($blog_title, $user_name, $user_email, $public, $meta='') {