WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/16/2020 06:40:52 PM (11 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison where static strings are involved.

This reduces the number of WordPress.PHP.StrictComparisons.LooseComparison issues in half, from 1897 to 890.

Includes minor code layout fixes for better readability.

See #49542.

File:
1 edited

Legend:

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

    r47550 r47808  
    277277
    278278        $link = admin_url( 'edit-comments.php' );
    279         if ( ! empty( $comment_type ) && 'all' != $comment_type ) {
     279        if ( ! empty( $comment_type ) && 'all' !== $comment_type ) {
    280280            $link = add_query_arg( 'comment_type', $comment_type, $link );
    281281        }
     
    635635
    636636        // Not looking at all comments.
    637         if ( $comment_status && 'all' != $comment_status ) {
     637        if ( $comment_status && 'all' !== $comment_status ) {
    638638            if ( 'approved' === $the_comment_status ) {
    639639                $actions['unapprove'] = sprintf(
Note: See TracChangeset for help on using the changeset viewer.