Coding Standards: Always use parentheses when instantiating an object.
Note: This will be enforced by WPCS 3.0.0. Props jrf. See #56791. Built from https://develop.svn.wordpress.org/trunk@54891 git-svn-id: http://core.svn.wordpress.org/trunk@54443 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -297,7 +297,7 @@ function ms_load_current_site_and_network( $domain, $path, $subdomain = false )
|
||||
|
||||
// If the network is defined in wp-config.php, we can simply use that.
|
||||
if ( defined( 'DOMAIN_CURRENT_SITE' ) && defined( 'PATH_CURRENT_SITE' ) ) {
|
||||
$current_site = new stdClass;
|
||||
$current_site = new stdClass();
|
||||
$current_site->id = defined( 'SITE_ID_CURRENT_SITE' ) ? SITE_ID_CURRENT_SITE : 1;
|
||||
$current_site->domain = DOMAIN_CURRENT_SITE;
|
||||
$current_site->path = PATH_CURRENT_SITE;
|
||||
@@ -387,7 +387,7 @@ function ms_load_current_site_and_network( $domain, $path, $subdomain = false )
|
||||
|
||||
// During activation of a new subdomain, the requested site does not yet exist.
|
||||
if ( empty( $current_blog ) && wp_installing() ) {
|
||||
$current_blog = new stdClass;
|
||||
$current_blog = new stdClass();
|
||||
$current_blog->blog_id = 1;
|
||||
$blog_id = 1;
|
||||
$current_blog->public = 1;
|
||||
|
||||
Reference in New Issue
Block a user