- Timestamp:
- 07/10/2017 11:04:26 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r40297 r41022 320 320 protected function extra_tablenav( $which ) { 321 321 global $comment_status, $comment_type; 322 static $has_items; 323 324 if ( ! isset( $has_items ) ) { 325 $has_items = $this->has_items(); 326 } 322 327 ?> 323 328 <div class="alignleft actions"> … … 355 360 } 356 361 357 if ( ( 'spam' === $comment_status || 'trash' === $comment_status ) && current_user_can( 'moderate_comments' ) && $ this->has_items()) {362 if ( ( 'spam' === $comment_status || 'trash' === $comment_status ) && current_user_can( 'moderate_comments' ) && $has_items ) { 358 363 wp_nonce_field( 'bulk-destroy', '_destroy_nonce' ); 359 364 $title = ( 'spam' === $comment_status ) ? esc_attr__( 'Empty Spam' ) : esc_attr__( 'Empty Trash' );
Note: See TracChangeset
for help on using the changeset viewer.