Make WordPress Core

Changeset 22001


Ignore:
Timestamp:
09/25/2012 03:55:32 PM (12 years ago)
Author:
ryan
Message:

Call send_origin_headers() from admin-ajax.php. Props nacin. fixes #21024

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r21681 r22001  
    1717define( 'WP_ADMIN', true );
    1818
     19/** Load WordPress Bootstrap */
     20require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
     21
     22/** Allow for cross-domain requests (from the frontend). */
     23send_origin_headers();
     24
    1925// Require an action parameter
    2026if ( empty( $_REQUEST['action'] ) )
    2127    die( '0' );
    22 
    23 /** Load WordPress Bootstrap */
    24 require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
    2528
    2629/** Load WordPress Administration APIs */
Note: See TracChangeset for help on using the changeset viewer.