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
This commit is contained in:
Sergey Biryukov 2020-01-02 11:42:01 +00:00
parent b9353dbf70
commit f2e464f8c1
2 changed files with 3 additions and 3 deletions

View File

@ -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';
}

View File

@ -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.