WordPress.org

Make WordPress Core

Changeset 47028


Ignore:
Timestamp:
01/02/2020 11:40:11 AM (22 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp-comments-post.php.

Props dkarfa.
Fixes #49105.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-comments-post.php

    r44659 r47028  
    66 */
    77
    8 if ( 'POST' != $_SERVER['REQUEST_METHOD'] ) {
     8if ( 'POST' !== $_SERVER['REQUEST_METHOD'] ) {
    99    $protocol = $_SERVER['SERVER_PROTOCOL'];
    10     if ( ! in_array( $protocol, array( 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0' ) ) ) {
     10    if ( ! in_array( $protocol, array( 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0' ), true ) ) {
    1111        $protocol = 'HTTP/1.0';
    1212    }
Note: See TracChangeset for help on using the changeset viewer.