mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 09:07:59 +01:00
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:
parent
b9353dbf70
commit
f2e464f8c1
@ -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';
|
||||
}
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user