Make WordPress Core

Changeset 19182


Ignore:
Timestamp:
11/05/2011 08:23:55 PM (13 years ago)
Author:
nacin
Message:

Send $user_id to is_super_admin() when checking to set primary_blog for a user in wpmu_create_blog(). see #19127.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-functions.php

    r19016 r19182  
    992992    update_option( 'blog_public', (int)$meta['public'] );
    993993
    994     if ( !is_super_admin() && ! get_user_meta( $user_id, 'primary_blog', true ) )
     994    if ( ! is_super_admin( $user_id ) && ! get_user_meta( $user_id, 'primary_blog', true ) )
    995995        update_user_meta( $user_id, 'primary_blog', $blog_id );
    996996
Note: See TracChangeset for help on using the changeset viewer.