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/rest-api/endpoints/class-wp-rest-comments-controller.php

    r53772 r54891  
    275275        $prepared_args = apply_filters( 'rest_comment_query', $prepared_args, $request );
    276276
    277         $query        = new WP_Comment_Query;
     277        $query        = new WP_Comment_Query();
    278278        $query_result = $query->query( $prepared_args );
    279279
     
    296296            unset( $prepared_args['number'], $prepared_args['offset'] );
    297297
    298             $query                  = new WP_Comment_Query;
     298            $query                  = new WP_Comment_Query();
    299299            $prepared_args['count'] = true;
    300300
Note: See TracChangeset for help on using the changeset viewer.