Ticket #27498: 27498.2.patch
File 27498.2.patch, 589 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/canonical.php
39 39 function redirect_canonical( $requested_url = null, $do_redirect = true ) { 40 40 global $wp_rewrite, $is_IIS, $wp_query, $wpdb; 41 41 42 if ( isset( $_SERVER['REQUEST_METHOD'] ) && 'GET' !== $_SERVER['REQUEST_METHOD']) {42 if ( isset( $_SERVER['REQUEST_METHOD'] ) && ! in_array( strtoupper( $_SERVER['REQUEST_METHOD'] ), array( 'GET', 'HEAD' ) ) ) { 43 43 return; 44 44 } 45 45