From a3dffe926a58241f6957ff34bbe2923749c7c985 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 24 Oct 2008 20:04:31 +0000 Subject: [PATCH] Warning fixes from DD32. see #7509 git-svn-id: http://svn.automattic.com/wordpress/trunk@9332 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-page-form.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-admin/edit-page-form.php b/wp-admin/edit-page-form.php index cf1a1a0052..639c868e32 100644 --- a/wp-admin/edit-page-form.php +++ b/wp-admin/edit-page-form.php @@ -13,6 +13,8 @@ */ if ( ! isset( $post_ID ) ) $post_ID = 0; +if ( ! isset( $temp_ID ) ) + $temp_ID = 0; if ( isset($_GET['message']) ) $_GET['message'] = absint( $_GET['message'] ); @@ -37,7 +39,7 @@ if ( 0 == $post_ID) { $form_action = 'editpost'; $nonce_action = 'update-page_' . $post_ID; $form_extra = ""; - $autosave = wp_get_post_autosave( $post_id ); + $autosave = wp_get_post_autosave( $post_ID ); if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt ) > mysql2date( 'U', $post->post_modified_gmt ) ) $notice = sprintf( $notices[1], get_edit_post_link( $autosave->ID ) ); }