Make WordPress Core


Ignore:
Timestamp:
11/29/2022 03:49:49 PM (19 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Always use parentheses when instantiating an object.

Note: This will be enforced by WPCS 3.0.0.

Props jrf.
See #56791.

File:
1 edited

Legend:

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

    r53394 r54891  
    298298    // If the network is defined in wp-config.php, we can simply use that.
    299299    if ( defined( 'DOMAIN_CURRENT_SITE' ) && defined( 'PATH_CURRENT_SITE' ) ) {
    300         $current_site         = new stdClass;
     300        $current_site         = new stdClass();
    301301        $current_site->id     = defined( 'SITE_ID_CURRENT_SITE' ) ? SITE_ID_CURRENT_SITE : 1;
    302302        $current_site->domain = DOMAIN_CURRENT_SITE;
     
    388388    // During activation of a new subdomain, the requested site does not yet exist.
    389389    if ( empty( $current_blog ) && wp_installing() ) {
    390         $current_blog          = new stdClass;
     390        $current_blog          = new stdClass();
    391391        $current_blog->blog_id = 1;
    392392        $blog_id               = 1;
Note: See TracChangeset for help on using the changeset viewer.