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/post.php

    r54855 r54891  
    24112411    $parsed_args['no_found_rows']       = true;
    24122412
    2413     $get_posts = new WP_Query;
     2413    $get_posts = new WP_Query();
    24142414    return $get_posts->query( $parsed_args );
    24152415
     
    30143014
    30153015    if ( ! post_type_exists( $type ) ) {
    3016         return new stdClass;
     3016        return new stdClass();
    30173017    }
    30183018
Note: See TracChangeset for help on using the changeset viewer.