Make WordPress Core


Ignore:
Timestamp:
02/09/2020 04:52:28 PM (6 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/import.php

    r47198 r47219  
    177177                        // phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText
    178178                        $importer['description'] = translate( $importer['description'] );
    179                         if ( $importer['name'] != 'WordPress' ) {
     179                        if ( 'WordPress' !== $importer['name'] ) {
    180180                                // phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText
    181181                                $importer['name'] = translate( $importer['name'] );
Note: See TracChangeset for help on using the changeset viewer.