Make WordPress Core


Ignore:
Timestamp:
05/16/2020 06:40:52 PM (5 years 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/plugin-install.php

    r47198 r47808  
    108108    }
    109109
    110     if ( 'query_plugins' == $action ) {
     110    if ( 'query_plugins' === $action ) {
    111111        if ( ! isset( $args->per_page ) ) {
    112112            $args->per_page = 24;
     
    463463    }
    464464
    465     if ( 'install' == $status ) {
     465    if ( 'install' === $status ) {
    466466        if ( is_dir( WP_PLUGIN_DIR . '/' . $api->slug ) ) {
    467467            $installed_plugin = get_plugins( '/' . $api->slug );
Note: See TracChangeset for help on using the changeset viewer.