Tabs, not spaces. Props PeteMall.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19874 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2012-02-08 17:05:40 +00:00
parent 391fd7003d
commit 6ef54c2016
1 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ define( 'WP_ADMIN', true );
// Require an action parameter // Require an action parameter
if ( empty( $_REQUEST['action'] ) ) if ( empty( $_REQUEST['action'] ) )
die( '0' ); die( '0' );
/** Load WordPress Bootstrap */ /** Load WordPress Bootstrap */
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
@ -58,9 +58,9 @@ if ( ! empty( $_POST['action'] ) && in_array( $_POST['action'], $core_actions_po
add_action( 'wp_ajax_nopriv_autosave', 'wp_ajax_nopriv_autosave', 1 ); add_action( 'wp_ajax_nopriv_autosave', 'wp_ajax_nopriv_autosave', 1 );
if ( is_user_logged_in() ) if ( is_user_logged_in() )
do_action( 'wp_ajax_' . $_REQUEST['action'], $_REQUEST['action'] ); // Authenticated actions do_action( 'wp_ajax_' . $_REQUEST['action'], $_REQUEST['action'] ); // Authenticated actions
else else
do_action( 'wp_ajax_nopriv_' . $_REQUEST['action'], $_REQUEST['action'] ); // Non-admin actions do_action( 'wp_ajax_nopriv_' . $_REQUEST['action'], $_REQUEST['action'] ); // Non-admin actions
// Default status // Default status
die( '0' ); die( '0' );