Make WordPress Core

Changeset 49381 for branches/5.5


Ignore:
Timestamp:
10/29/2020 05:44:59 PM (3 years ago)
Author:
whyisjake
Message:

Coding Standards: Use a strict comparison operator when comparing values.

Props batmoo, mukesh27.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.5/src/wp-includes/meta.php

    r49378 r49381  
    11611161function is_protected_meta( $meta_key, $meta_type = '' ) {
    11621162    $sanitized_key = preg_replace( "/[^\x20-\x7E\p{L}]/", '', $meta_key );
    1163     $protected     = strlen( $sanitized_key ) > 0 && ( '_' == $sanitized_key[0] );
     1163    $protected     = strlen( $sanitized_key ) > 0 && ( '_' === $sanitized_key[0] );
    11641164
    11651165    /**
Note: See TracChangeset for help on using the changeset viewer.