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-ms-themes-list-table.php

    r47550 r47808  
    353353            }
    354354
    355             if ( 'search' != $type ) {
     355            if ( 'search' !== $type ) {
    356356                $status_links[ $type ] = sprintf(
    357357                    "<a href='%s'%s>%s</a>",
     
    375375
    376376        $actions = array();
    377         if ( 'enabled' != $status ) {
     377        if ( 'enabled' !== $status ) {
    378378            $actions['enable-selected'] = $this->is_site_themes ? __( 'Enable' ) : __( 'Network Enable' );
    379379        }
    380         if ( 'disabled' != $status ) {
     380        if ( 'disabled' !== $status ) {
    381381            $actions['disable-selected'] = $this->is_site_themes ? __( 'Disable' ) : __( 'Network Disable' );
    382382        }
Note: See TracChangeset for help on using the changeset viewer.