Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (7 years ago)
Author:
pento
Message:

Code is Poetry.
WordPress' code just... wasn't.
This is now dealt with.

Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS.
Fixes #41057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-comment.php

    r41162 r42343  
    257257    public function get_children( $args = array() ) {
    258258        $defaults = array(
    259             'format' => 'tree',
    260             'status' => 'all',
     259            'format'       => 'tree',
     260            'status'       => 'all',
    261261            'hierarchical' => 'threaded',
    262             'orderby' => '',
     262            'orderby'      => '',
    263263        );
    264264
    265         $_args = wp_parse_args( $args, $defaults );
     265        $_args           = wp_parse_args( $args, $defaults );
    266266        $_args['parent'] = $this->comment_ID;
    267267
     
    277277            $children = array();
    278278            foreach ( $this->children as $child ) {
    279                 $child_args = $_args;
     279                $child_args           = $_args;
    280280                $child_args['format'] = 'flat';
    281281                // get_children() resets this value automatically.
Note: See TracChangeset for help on using the changeset viewer.