Ticket #49105: 49105.patch
| File 49105.patch, 569 bytes (added by , 6 years ago) |
|---|
-
src/wp-comments-post.php
5 5 * @package WordPress 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 } 13 13