WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/16/2020 06:40:52 PM (11 months 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/setup-config.php

    r47746 r47808  
    355355        $key = 0;
    356356        foreach ( $config_file as $line_num => $line ) {
    357             if ( '$table_prefix =' == substr( $line, 0, 15 ) ) {
     357            if ( '$table_prefix =' === substr( $line, 0, 15 ) ) {
    358358                $config_file[ $line_num ] = '$table_prefix = \'' . addcslashes( $prefix, "\\'" ) . "';\r\n";
    359359                continue;
Note: See TracChangeset for help on using the changeset viewer.