From f4346b9da68bdca9f50a715cd54703b6e68cc39b Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 2 Jan 2020 11:40:11 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `wp-comments-post.php`. Props dkarfa. Fixes #49105. git-svn-id: https://develop.svn.wordpress.org/trunk@47028 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-comments-post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-comments-post.php b/src/wp-comments-post.php index fe03cb7296..86c758cc0a 100644 --- a/src/wp-comments-post.php +++ b/src/wp-comments-post.php @@ -5,9 +5,9 @@ * @package WordPress */ -if ( 'POST' != $_SERVER['REQUEST_METHOD'] ) { +if ( 'POST' !== $_SERVER['REQUEST_METHOD'] ) { $protocol = $_SERVER['SERVER_PROTOCOL']; - if ( ! in_array( $protocol, array( 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0' ) ) ) { + if ( ! in_array( $protocol, array( 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0' ), true ) ) { $protocol = 'HTTP/1.0'; }