mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-17 03:56:07 +00:00
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
This commit is contained in:
parent
af6f9de61b
commit
7ba19933f3
@ -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');
|
||||
?>
|
||||
<div id="wp-fullscreen-body">
|
||||
<div id="fullscreen-topbar">
|
||||
|
Loading…
x
Reference in New Issue
Block a user