Make WordPress Core


Ignore:
Timestamp:
07/21/2010 08:10:22 PM (14 years ago)
Author:
ryan
Message:

Use get_current_user() and get_current_user_id() instead of global current_user object. Props filofo. fixes #13934 for 3.0.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/wp-signup.php

    r15235 r15452  
    154154
    155155function signup_another_blog($blogname = '', $blog_title = '', $errors = '') {
    156     global $current_user, $current_site;
     156    global $current_site;
     157    $current_user = wp_get_current_user();
    157158
    158159    if ( ! is_wp_error($errors) ) {
     
    198199
    199200function validate_another_blog_signup() {
    200     global $wpdb, $current_user, $blogname, $blog_title, $errors, $domain, $path;
     201    global $wpdb, $blogname, $blog_title, $errors, $domain, $path;
    201202    $current_user = wp_get_current_user();
    202203    if ( !is_user_logged_in() )
Note: See TracChangeset for help on using the changeset viewer.