Ticket #20699: 20699.diff
File 20699.diff, 691 bytes (added by , 13 years ago) |
---|
-
wp-admin/admin-ajax.php
63 63 add_action( 'wp_ajax_nopriv_autosave', 'wp_ajax_nopriv_autosave', 1 ); 64 64 65 65 if ( is_user_logged_in() ) 66 do_action( 'wp_ajax_' . $_REQUEST['action'] , $_REQUEST['action']); // Authenticated actions66 do_action( 'wp_ajax_' . $_REQUEST['action'] ); // Authenticated actions 67 67 else 68 do_action( 'wp_ajax_nopriv_' . $_REQUEST['action'] , $_REQUEST['action']); // Non-admin actions68 do_action( 'wp_ajax_nopriv_' . $_REQUEST['action'] ); // Non-admin actions 69 69 70 70 // Default status 71 71 die( '0' );