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

Props batmoo, mukesh27.


git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49381 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jake Spurlock 2020-10-29 17:44:59 +00:00
parent 69e8323982
commit 7d5bf1c3f8

View File

@ -1160,7 +1160,7 @@ function _get_meta_table( $type ) {
*/
function is_protected_meta( $meta_key, $meta_type = '' ) {
$sanitized_key = preg_replace( "/[^\x20-\x7E\p{L}]/", '', $meta_key );
$protected = strlen( $sanitized_key ) > 0 && ( '_' == $sanitized_key[0] );
$protected = strlen( $sanitized_key ) > 0 && ( '_' === $sanitized_key[0] );
/**
* Filters whether a meta key is considered protected.