Make WordPress Core


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

    r54673 r54891  
    976976        // User is logged out, create anonymous user object.
    977977        $user = new WP_User( 0 );
    978         $user->init( new stdClass );
     978        $user->init( new stdClass() );
    979979    }
    980980
Note: See TracChangeset for help on using the changeset viewer.