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