Make WordPress Core


Ignore:
Timestamp:
11/29/2022 03:49:49 PM (22 months 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-template.php

    r54284 r54891  
    15471547function walk_page_tree( $pages, $depth, $current_page, $args ) {
    15481548    if ( empty( $args['walker'] ) ) {
    1549         $walker = new Walker_Page;
     1549        $walker = new Walker_Page();
    15501550    } else {
    15511551        /**
     
    15791579function walk_page_dropdown_tree( ...$args ) {
    15801580    if ( empty( $args[2]['walker'] ) ) { // The user's options are the third parameter.
    1581         $walker = new Walker_PageDropdown;
     1581        $walker = new Walker_PageDropdown();
    15821582    } else {
    15831583        /**
Note: See TracChangeset for help on using the changeset viewer.