Fix warning when DFW is loaded and the $post global is not set, props SidHarrell, fixes #17874
git-svn-id: https://develop.svn.wordpress.org/trunk@18331 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bb75e13b17
commit
1598bef0d5
|
@ -1757,7 +1757,7 @@ function wp_fullscreen_html() {
|
||||||
$width = isset($content_width) && 800 > $content_width ? $content_width : 800;
|
$width = isset($content_width) && 800 > $content_width ? $content_width : 800;
|
||||||
$width = $width + 10; // compensate for the padding
|
$width = $width + 10; // compensate for the padding
|
||||||
$dfw_width = get_user_setting( 'dfw_width', $width );
|
$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="wp-fullscreen-body">
|
||||||
<div id="fullscreen-topbar">
|
<div id="fullscreen-topbar">
|
||||||
|
|
Loading…
Reference in New Issue