From f2e464f8c15dcfcd485d68e5b11edf82f5152882 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 2 Jan 2020 11:42:01 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `wp-comments-post.php`. Props dkarfa. Fixes #49105. Built from https://develop.svn.wordpress.org/trunk@47028 git-svn-id: http://core.svn.wordpress.org/trunk@46828 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-comments-post.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-comments-post.php b/wp-comments-post.php index fe03cb7296..86c758cc0a 100644 --- a/wp-comments-post.php +++ b/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'; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 815463d881..d88b8d130b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-47027'; +$wp_version = '5.4-alpha-47028'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.