Make WordPress Core


Ignore:
Timestamp:
05/16/2020 06:40:52 PM (3 years 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-includes/pomo/translations.php

    r47198 r47808  
    288288        function set_header( $header, $value ) {
    289289            parent::set_header( $header, $value );
    290             if ( 'Plural-Forms' == $header ) {
     290            if ( 'Plural-Forms' === $header ) {
    291291                list( $nplurals, $expression )     = $this->nplurals_and_expression_from_header( $this->get_header( 'Plural-Forms' ) );
    292292                $this->_nplurals                   = $nplurals;
Note: See TracChangeset for help on using the changeset viewer.