Comments: Restore the ::has_items()
call in WP_Comments_List_Table::extra_tablenav()
for now, until unit tests are updated accordingly.
Follow-up to [48722]. Fixes #40188. See #50815. git-svn-id: https://develop.svn.wordpress.org/trunk@48724 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
21c0ed05c4
commit
a362852fcf
@ -407,7 +407,7 @@ class WP_Comments_List_Table extends WP_List_Table {
|
|||||||
|
|
||||||
$output = ob_get_clean();
|
$output = ob_get_clean();
|
||||||
|
|
||||||
if ( ! empty( $output ) && $has_items ) {
|
if ( ! empty( $output ) && $this->has_items() ) {
|
||||||
echo $output;
|
echo $output;
|
||||||
submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
|
submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user