WordPress.org

Make WordPress Core

Ticket #13761: define-registration-function-before-use.13761.diff

File define-registration-function-before-use.13761.diff, 1003 bytes (added by filosofo, 4 years ago)
  • wp-includes/ms-functions.php

     
    454454function wpmu_validate_user_signup($user_name, $user_email) { 
    455455        global $wpdb; 
    456456 
     457        require_once( ABSPATH . WPINC . '/registration.php' ); 
     458 
    457459        $errors = new WP_Error(); 
    458460 
    459461        $orig_username = $user_name; 
     
    546548function wpmu_validate_blog_signup($blogname, $blog_title, $user = '') { 
    547549        global $wpdb, $domain, $base, $current_site; 
    548550 
     551        require_once( ABSPATH . WPINC . '/registration.php' ); 
     552 
    549553        $blog_title = strip_tags( $blog_title ); 
    550554        $blog_title = substr( $blog_title, 0, 50 ); 
    551555 
     
    720724function wpmu_activate_signup($key) { 
    721725        global $wpdb, $current_site; 
    722726 
     727        require_once( ABSPATH . WPINC . '/registration.php' ); 
     728 
    723729        $signup = $wpdb->get_row( $wpdb->prepare("SELECT * FROM $wpdb->signups WHERE activation_key = %s", $key) ); 
    724730 
    725731        if ( empty($signup) )