Ticket #48965: wp-comments-post.php.patch
File wp-comments-post.php.patch, 472 bytes (added by , 5 years ago) |
---|
-
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 10 if ( ! in_array( $protocol, array( 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0' ) ) ) { 11 11 $protocol = 'HTTP/1.0';