Make WordPress Core


Ignore:
Timestamp:
02/09/2020 04:52:28 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use Yoda conditions where appropriate.

See #49222.

File:
1 edited

Legend:

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

    r47198 r47219  
    102102            $tabs['search'] = __( 'Search Results' );
    103103        }
    104         if ( $tab === 'beta' || false !== strpos( get_bloginfo( 'version' ), '-' ) ) {
     104        if ( 'beta' === $tab || false !== strpos( get_bloginfo( 'version' ), '-' ) ) {
    105105            $tabs['beta'] = _x( 'Beta Testing', 'Plugin Installer' );
    106106        }
     
    370370     */
    371371    protected function display_tablenav( $which ) {
    372         if ( $GLOBALS['tab'] === 'featured' ) {
     372        if ( 'featured' === $GLOBALS['tab'] ) {
    373373            return;
    374374        }
Note: See TracChangeset for help on using the changeset viewer.