Ticket #21024: 21024.2.diff
File 21024.2.diff, 779 bytes (added by , 12 years ago) |
---|
-
wp-admin/admin-ajax.php
17 17 define( 'WP_ADMIN', true ); 18 18 19 19 // Require an action parameter 20 if ( empty( $_REQUEST['action'] ) )20 if ( empty( $_REQUEST['action'] ) && 'OPTIONS' != $_SERVER['REQUEST_METHOD'] ) 21 21 die( '0' ); 22 22 23 23 /** Load WordPress Bootstrap */ 24 24 require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); 25 25 26 /** Allow for cross-domain requests (from the frontend). */ 27 send_origin_headers(); 28 29 // Require an action parameter 30 if ( empty( $_REQUEST['action'] ) ) 31 die( '0' ); 32 26 33 /** Load WordPress Administration APIs */ 27 34 require_once( ABSPATH . 'wp-admin/includes/admin.php' ); 28 35