Make 0 the default status for admin-ajax.php. props TobiasBg. fixes #15327.
git-svn-id: https://develop.svn.wordpress.org/trunk@19762 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
64ade9c31b
commit
e1b6e3f002
@ -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
Block a user