Make WordPress Core


Ignore:
Timestamp:
05/16/2020 06:40:52 PM (4 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/schema.php

    r47782 r47808  
    959959
    960960    $errors = new WP_Error();
    961     if ( '' == $domain ) {
     961    if ( '' === $domain ) {
    962962        $errors->add( 'empty_domain', __( 'You must provide a domain name.' ) );
    963963    }
    964     if ( '' == $site_name ) {
     964    if ( '' === $site_name ) {
    965965        $errors->add( 'empty_sitename', __( 'You must provide a name for your network of sites.' ) );
    966966    }
Note: See TracChangeset for help on using the changeset viewer.