Make WordPress Core


Ignore:
Timestamp:
05/16/2020 06:40:52 PM (5 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-admin/includes/class-custom-image-header.php

    r47550 r47808  
    282282     */
    283283    public function show_header_selector( $type = 'default' ) {
    284         if ( 'default' == $type ) {
     284        if ( 'default' === $type ) {
    285285            $headers = $this->default_headers;
    286286        } else {
     
    360360            return;
    361361        text_color = $('#text-color');
    362         if ( '' == text_color.val().replace('#', '') ) {
     362        if ( '' === text_color.val().replace('#', '') ) {
    363363            text_color.val( default_color );
    364364            pickColor( default_color );
Note: See TracChangeset for help on using the changeset viewer.