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

    r53913 r54891  
    11111111    // The user's options are the third parameter.
    11121112    if ( empty( $args[2]['walker'] ) || ! ( $args[2]['walker'] instanceof Walker ) ) {
    1113         $walker = new Walker_Category;
     1113        $walker = new Walker_Category();
    11141114    } else {
    11151115        /**
     
    11371137    // The user's options are the third parameter.
    11381138    if ( empty( $args[2]['walker'] ) || ! ( $args[2]['walker'] instanceof Walker ) ) {
    1139         $walker = new Walker_CategoryDropdown;
     1139        $walker = new Walker_CategoryDropdown();
    11401140    } else {
    11411141        /**
Note: See TracChangeset for help on using the changeset viewer.