Make WordPress Core


Ignore:
Timestamp:
11/29/2022 03:49:49 PM (4 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-admin/includes/update-core.php

    r54849 r54891  
    13961396                                        if ( is_wp_error( $_result ) ) {
    13971397                                                if ( ! is_wp_error( $result ) ) {
    1398                                                         $result = new WP_Error;
     1398                                                        $result = new WP_Error();
    13991399                                                }
    14001400
Note: See TracChangeset for help on using the changeset viewer.