Hello again.
I’ve noticed that problem is in following part of code:
$args = array(
‘post_parent’ => $post_id,
‘post_type’ => ‘reply’,
‘numberposts’ => -1,
‘post_status’ => ‘pending’
);
$children = get_children( $args );
It looks like
get_children( $args );
ignores
‘post_status’ => ‘pending’.
ps.
I use PHP7 and apache 2.4
-
This reply was modified 7 years, 6 months ago by fobtron.