diff -r c7c34916027a -r 177826044cd9 wp/wp-includes/class-wp-comment.php --- a/wp/wp-includes/class-wp-comment.php Mon Oct 14 18:06:33 2019 +0200 +++ b/wp/wp-includes/class-wp-comment.php Mon Oct 14 18:28:13 2019 +0200 @@ -162,7 +162,6 @@ * Retrieves a WP_Comment instance. * * @since 4.4.0 - * @static * * @global wpdb $wpdb WordPress database abstraction object. * @@ -256,13 +255,13 @@ */ public function get_children( $args = array() ) { $defaults = array( - 'format' => 'tree', - 'status' => 'all', + 'format' => 'tree', + 'status' => 'all', 'hierarchical' => 'threaded', - 'orderby' => '', + 'orderby' => '', ); - $_args = wp_parse_args( $args, $defaults ); + $_args = wp_parse_args( $args, $defaults ); $_args['parent'] = $this->comment_ID; if ( is_null( $this->children ) ) { @@ -276,7 +275,7 @@ if ( 'flat' === $_args['format'] ) { $children = array(); foreach ( $this->children as $child ) { - $child_args = $_args; + $child_args = $_args; $child_args['format'] = 'flat'; // get_children() resets this value automatically. unset( $child_args['parent'] );