From 7ba19933f3cf3336da069a78eb0ecef45e3e9c12 Mon Sep 17 00:00:00 2001 From: azaozz Date: Thu, 23 Jun 2011 19:41:42 +0000 Subject: [PATCH] Fix warning when DFW is loaded and the $post global is not set, props SidHarrell, fixes #17874 git-svn-id: http://svn.automattic.com/wordpress/trunk@18331 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index cad472bd3..b4da1e79f 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -1757,7 +1757,7 @@ function wp_fullscreen_html() { $width = isset($content_width) && 800 > $content_width ? $content_width : 800; $width = $width + 10; // compensate for the padding $dfw_width = get_user_setting( 'dfw_width', $width ); - $save = $post->post_status == 'publish' ? __('Update') : __('Save'); + $save = isset($post->post_status) && $post->post_status == 'publish' ? __('Update') : __('Save'); ?>