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-includes/class-wp-taxonomy.php

    r47122 r47808  
    300300        }
    301301
    302         if ( false !== $args['rewrite'] && ( is_admin() || '' != get_option( 'permalink_structure' ) ) ) {
     302        if ( false !== $args['rewrite'] && ( is_admin() || get_option( 'permalink_structure' ) ) ) {
    303303            $args['rewrite'] = wp_parse_args(
    304304                $args['rewrite'],
     
    401401        }
    402402
    403         if ( false !== $this->rewrite && ( is_admin() || '' != get_option( 'permalink_structure' ) ) ) {
     403        if ( false !== $this->rewrite && ( is_admin() || get_option( 'permalink_structure' ) ) ) {
    404404            if ( $this->hierarchical && $this->rewrite['hierarchical'] ) {
    405405                $tag = '(.+?)';
Note: See TracChangeset for help on using the changeset viewer.