Changeset 47028
- Timestamp:
- 01/02/2020 11:40:11 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-comments-post.php
r44659 r47028 6 6 */ 7 7 8 if ( 'POST' != $_SERVER['REQUEST_METHOD'] ) {8 if ( 'POST' !== $_SERVER['REQUEST_METHOD'] ) { 9 9 $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 ) ) { 11 11 $protocol = 'HTTP/1.0'; 12 12 }
Note: See TracChangeset
for help on using the changeset viewer.