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
This commit is contained in:
parent
3e47858a53
commit
f4346b9da6
@ -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';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user