WordPress.org

Make WordPress Core

Ticket #43183: OPTIONS-wp-comments-post.patch

File OPTIONS-wp-comments-post.patch, 282 bytes (added by drzraf, 3 years ago)

patch v1

Line 
18c8
2< if ( 'POST' != $_SERVER['REQUEST_METHOD'] ) {
3---
4> if ( ! in_array( $_SERVER['REQUEST_METHOD'], array( 'POST', 'OPTIONS' ) ) ) {
521,22c21,22
6< require( dirname( __FILE__ ) . '/wp-load.php' );
7<
8---
9> require( dirname( __FILE__ ) . '/wp-load.php' );
10> send_origin_headers();