Make WordPress Core

Ticket #24760: 24760_2.patch

File 24760_2.patch, 672 bytes (added by uglyrobot, 9 years ago)

Set additional properties of $current_blog global to avoid notice

  • wp-includes/ms-settings.php

     
    135135                ms_not_installed( $domain, $path );
    136136        }
    137137
    138         // @todo Investigate when exactly this can occur.
     138        // This occurs when following the activation link sent via email in subdomain installs
    139139        if ( empty( $current_blog ) && wp_installing() ) {
    140140                $current_blog = new stdClass;
    141141                $current_blog->blog_id = $blog_id = 1;
     142                $current_blog->domain = $domain;
     143                $current_blog->path = '/';
     144                $current_blog->public = 1;
    142145        }
    143146
    144147        // No site has been found, bail.