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/class-wp-oembed.php

    r54754 r54891  
    640640        }
    641641
    642         $dom     = new DOMDocument;
     642        $dom     = new DOMDocument();
    643643        $success = $dom->loadXML( $response_body );
    644644        if ( ! $success ) {
     
    661661        }
    662662
    663         $return = new stdClass;
     663        $return = new stdClass();
    664664        foreach ( $xml as $key => $value ) {
    665665            $return->$key = (string) $value;
Note: See TracChangeset for help on using the changeset viewer.