Make WordPress Core


Ignore:
Timestamp:
04/15/2023 12:09:08 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison where strlen() is involved.

Follow-up to [649], [1345], [3034], [6132], [6314], [6974], [55642].

Props aristath, poena, afercia, SergeyBiryukov.
See #57839.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post-template.php

    r55262 r55652  
    4343    $title = get_the_title();
    4444
    45     if ( strlen( $title ) == 0 ) {
     45    if ( strlen( $title ) === 0 ) {
    4646        return;
    4747    }
     
    8989    $title = get_the_title( $parsed_args['post'] );
    9090
    91     if ( strlen( $title ) == 0 ) {
     91    if ( strlen( $title ) === 0 ) {
    9292        return;
    9393    }
Note: See TracChangeset for help on using the changeset viewer.