mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Fix notices, props sivel. Fixes #12122
git-svn-id: http://svn.automattic.com/wordpress/trunk@13175 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bc6924cf05
commit
bd540fe7f1
@ -15,6 +15,10 @@ define('DOING_AJAX', true);
|
||||
define('WP_ADMIN', true);
|
||||
|
||||
require_once('../wp-load.php');
|
||||
|
||||
if ( ! isset( $_REQUEST['action'] ) )
|
||||
die('-1');
|
||||
|
||||
require_once('includes/admin.php');
|
||||
@header('Content-Type: text/html; charset=' . get_option('blog_charset'));
|
||||
|
||||
@ -22,7 +26,7 @@ do_action('admin_init');
|
||||
|
||||
if ( ! is_user_logged_in() ) {
|
||||
|
||||
if ( $_POST['action'] == 'autosave' ) {
|
||||
if ( isset( $_POST['action'] ) && $_POST['action'] == 'autosave' ) {
|
||||
$id = isset($_POST['post_ID'])? (int) $_POST['post_ID'] : 0;
|
||||
|
||||
if ( ! $id )
|
||||
|
Loading…
Reference in New Issue
Block a user