diff --git a/wp-admin/includes/class-wp-comments-list-table.php b/wp-admin/includes/class-wp-comments-list-table.php
index 116a55e..aede18d 100644
|
a
|
b
|
class WP_Comments_List_Table extends WP_List_Table { |
| 354 | 354 | submit_button( __( 'Filter' ), 'button', 'filter_action', false, array( 'id' => 'post-query-submit' ) ); |
| 355 | 355 | } |
| 356 | 356 | |
| 357 | | if ( ( 'spam' === $comment_status || 'trash' === $comment_status ) && current_user_can( 'moderate_comments' ) ) { |
| | 357 | if ( ( 'spam' === $comment_status || 'trash' === $comment_status ) && current_user_can( 'moderate_comments' ) && $this->has_items() ) { |
| 358 | 358 | wp_nonce_field( 'bulk-destroy', '_destroy_nonce' ); |
| 359 | 359 | $title = ( 'spam' === $comment_status ) ? esc_attr__( 'Empty Spam' ) : esc_attr__( 'Empty Trash' ); |
| 360 | 360 | submit_button( $title, 'apply', 'delete_all', false ); |
diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php
index 7ef790e..ae8c130 100644
|
a
|
b
|
class WP_Posts_List_Table extends WP_List_Table { |
| 482 | 482 | submit_button( __( 'Filter' ), 'button', 'filter_action', false, array( 'id' => 'post-query-submit' ) ); |
| 483 | 483 | } |
| 484 | 484 | |
| 485 | | if ( $this->is_trash && current_user_can( get_post_type_object( $this->screen->post_type )->cap->edit_others_posts ) ) { |
| | 485 | if ( $this->is_trash && current_user_can( get_post_type_object( $this->screen->post_type )->cap->edit_others_posts ) && $this->has_items() ) { |
| 486 | 486 | submit_button( __( 'Empty Trash' ), 'apply', 'delete_all', false ); |
| 487 | 487 | } |
| 488 | 488 | ?> |