Ticket #12122: 12122.2.diff
File 12122.2.diff, 712 bytes (added by , 14 years ago) |
---|
-
wp-admin/admin-ajax.php
14 14 define('DOING_AJAX', true); 15 15 define('WP_ADMIN', true); 16 16 17 if ( ! isset( $_REQUEST['action'] ) ) 18 die('-1'); 19 17 20 require_once('../wp-load.php'); 18 21 require_once('includes/admin.php'); 19 22 @header('Content-Type: text/html; charset=' . get_option('blog_charset')); … … 22 25 23 26 if ( ! is_user_logged_in() ) { 24 27 25 if ( $_POST['action'] == 'autosave' ) {28 if ( isset( $_POST['action'] ) && $_POST['action'] == 'autosave' ) { 26 29 $id = isset($_POST['post_ID'])? (int) $_POST['post_ID'] : 0; 27 30 28 31 if ( ! $id )