WordPress.org

Make WordPress Core

Changeset 14253


Ignore:
Timestamp:
04/27/10 17:37:01 (5 years ago)
Author:
wpmuguru
Message:

don't change super admin primary site when creating new site

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/ms-edit.php

    r14206 r14253  
    187187        if ( !is_wp_error( $id ) ) { 
    188188            $dashboard_blog = get_dashboard_blog(); 
    189             if ( get_user_option( 'primary_blog', $user_id ) == $dashboard_blog->blog_id ) 
     189            if ( !is_super_admin( $user_id ) && get_user_option( 'primary_blog', $user_id ) == $dashboard_blog->blog_id ) 
    190190                update_user_option( $user_id, 'primary_blog', $id, true ); 
    191191            $content_mail = sprintf( __( "New site created by %1s\n\nAddress: http://%2s\nName: %3s"), $current_user->user_login , $newdomain . $path, stripslashes( $title ) ); 
Note: See TracChangeset for help on using the changeset viewer.