Make WordPress Core


Ignore:
Timestamp:
02/09/2020 04:52:28 PM (5 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-plugin-installer-skin.php

    r45932 r47219  
    9090        }
    9191
    92         if ( 'import' == $from ) {
     92        if ( 'import' === $from ) {
    9393            $install_actions['importers_page'] = sprintf(
    9494                '<a href="%s" target="_parent">%s</a>',
     
    9696                __( 'Return to Importers' )
    9797            );
    98         } elseif ( $this->type == 'web' ) {
     98        } elseif ( 'web' === $this->type ) {
    9999            $install_actions['plugins_page'] = sprintf(
    100100                '<a href="%s" target="_parent">%s</a>',
     
    102102                __( 'Return to Plugin Installer' )
    103103            );
    104         } elseif ( 'upload' == $this->type && 'plugins' == $from ) {
     104        } elseif ( 'upload' === $this->type && 'plugins' === $from ) {
    105105            $install_actions['plugins_page'] = sprintf(
    106106                '<a href="%s">%s</a>',
Note: See TracChangeset for help on using the changeset viewer.