Make WordPress Core

Changeset 48970


Ignore:
Timestamp:
09/11/2020 01:03:54 AM (6 years ago)
Author:
SergeyBiryukov
Message:

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

See #50767.

File:
1 edited

Legend:

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

    r48520 r48970  
    102102                        $tabs['search'] = __( 'Search Results' );
    103103                }
     104
    104105                if ( 'beta' === $tab || false !== strpos( get_bloginfo( 'version' ), '-' ) ) {
    105106                        $tabs['beta'] = _x( 'Beta Testing', 'Plugin Installer' );
    106107                }
     108
    107109                $tabs['featured']    = _x( 'Featured', 'Plugin Installer' );
    108110                $tabs['popular']     = _x( 'Popular', 'Plugin Installer' );
    109111                $tabs['recommended'] = _x( 'Recommended', 'Plugin Installer' );
    110112                $tabs['favorites']   = _x( 'Favorites', 'Plugin Installer' );
     113
    111114                if ( current_user_can( 'upload_plugins' ) ) {
    112115                        // No longer a real tab. Here for filter compatibility.
    … …  
    428431                $b = $plugin_b->$orderby;
    429432
    430                 if ( $a == $b ) {
     433                if ( $a === $b ) {
    431434                        return 0;
    432435                }
    … …  
    473476
    474477                        // Display the group heading if there is one.
    475                         if ( isset( $plugin['group'] ) && $plugin['group'] != $group ) {
     478                        if ( isset( $plugin['group'] ) && $plugin['group'] !== $group ) {
    476479                                if ( isset( $this->groups[ $plugin['group'] ] ) ) {
    477480                                        $group_name = $this->groups[ $plugin['group'] ];
    … …  
    494497                                $group = $plugin['group'];
    495498                        }
     499
    496500                        $title = wp_kses( $plugin['name'], $plugins_allowedtags );
    497501
    … …  
    744748                                                        number_format_i18n( $active_installs_millions )
    745749                                                );
    746                                         } elseif ( 0 == $plugin['active_installs'] ) {
     750                                        } elseif ( 0 === $plugin['active_installs'] ) {
    747751                                                $active_installs_text = _x( 'Less Than 10', 'Active plugin installations' );
    748752                                        } else {
Note: See TracChangeset for help on using the changeset viewer.