Make 0 the default status for admin-ajax.php. props TobiasBg. fixes #15327.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19762 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5f183e52f6
commit
5d036c9b34
|
@ -18,7 +18,7 @@ define( 'WP_ADMIN', true );
|
|||
|
||||
// Require an action parameter
|
||||
if ( empty( $_REQUEST['action'] ) )
|
||||
die( '-1' );
|
||||
die( '0' );
|
||||
|
||||
/** Load WordPress Bootstrap */
|
||||
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
|
||||
|
@ -63,4 +63,4 @@ else
|
|||
do_action( 'wp_ajax_nopriv_' . $_REQUEST['action'], $_REQUEST['action'] ); // Non-admin actions
|
||||
|
||||
// Default status
|
||||
die( '-1' );
|
||||
die( '0' );
|
||||
|
|
Loading…
Reference in New Issue