Make WordPress Core


Ignore:
Timestamp:
05/03/2021 01:55:08 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp-admin/includes/class-wp-posts-list-table.php.

Includes minor code layout fixes for better readability.

See #52627.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-comments-list-table.php

    r50768 r50804  
    414414        }
    415415
    416         if ( ( 'spam' === $comment_status || 'trash' === $comment_status ) && current_user_can( 'moderate_comments' ) && $has_items ) {
     416        if ( ( 'spam' === $comment_status || 'trash' === $comment_status ) && $has_items
     417            && current_user_can( 'moderate_comments' )
     418        ) {
    417419            wp_nonce_field( 'bulk-destroy', '_destroy_nonce' );
    418420            $title = ( 'spam' === $comment_status ) ? esc_attr__( 'Empty Spam' ) : esc_attr__( 'Empty Trash' );
Note: See TracChangeset for help on using the changeset viewer.