Update WP and plugins
This commit is contained in:
parent
10a4713229
commit
1fb77fc4ff
864 changed files with 101724 additions and 78262 deletions
|
@ -162,7 +162,6 @@ final class WP_Comment {
|
|||
* Retrieves a WP_Comment instance.
|
||||
*
|
||||
* @since 4.4.0
|
||||
* @static
|
||||
*
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
|
@ -256,13 +255,13 @@ final class WP_Comment {
|
|||
*/
|
||||
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 @@ final class WP_Comment {
|
|||
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'] );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue