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-plugin-installer-skin.php

    r47219 r47808  
    6161        $from = isset( $_GET['from'] ) ? wp_unslash( $_GET['from'] ) : 'plugins';
    6262
    63         if ( 'import' == $from ) {
     63        if ( 'import' === $from ) {
    6464            $install_actions['activate_plugin'] = sprintf(
    6565                '<a class="button button-primary" href="%s" target="_parent">%s</a>',
     
    6767                __( 'Activate Plugin &amp; Run Importer' )
    6868            );
    69         } elseif ( 'press-this' == $from ) {
     69        } elseif ( 'press-this' === $from ) {
    7070            $install_actions['activate_plugin'] = sprintf(
    7171                '<a class="button button-primary" href="%s" target="_parent">%s</a>',
Note: See TracChangeset for help on using the changeset viewer.