From e1355c14acb5f5f737141356df5d93c241b42fd3 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 1 Aug 2023 10:59:34 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `wp-includes/option.php`. Follow-up to [8784], [25109]. Props aristath, poena, afercia, SergeyBiryukov. See #58831. git-svn-id: https://develop.svn.wordpress.org/trunk@56333 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/option.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/option.php b/src/wp-includes/option.php index 5d7cbc0b15..be68945d61 100644 --- a/src/wp-includes/option.php +++ b/src/wp-includes/option.php @@ -1151,7 +1151,7 @@ function wp_user_settings() { $cookie = preg_replace( '/[^A-Za-z0-9=&_]/', '', $_COOKIE[ 'wp-settings-' . $user_id ] ); // No change or both empty. - if ( $cookie == $settings ) { + if ( $cookie === $settings ) { return; }