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-admin/includes/template.php

    r54883 r54891  
    105105
    106106    if ( empty( $parsed_args['walker'] ) || ! ( $parsed_args['walker'] instanceof Walker ) ) {
    107         $walker = new Walker_Category_Checklist;
     107        $walker = new Walker_Category_Checklist();
    108108    } else {
    109109        $walker = $parsed_args['walker'];
Note: See TracChangeset for help on using the changeset viewer.