Make WordPress Core


Ignore:
Timestamp:
11/29/2022 03:49:49 PM (2 years 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/user.php

    r54738 r54891  
    952952    if ( ! is_multisite() ) {
    953953        $site_id                        = get_current_blog_id();
    954         $sites                          = array( $site_id => new stdClass );
     954        $sites                          = array( $site_id => new stdClass() );
    955955        $sites[ $site_id ]->userblog_id = $site_id;
    956956        $sites[ $site_id ]->blogname    = get_option( 'blogname' );
Note: See TracChangeset for help on using the changeset viewer.