Make WordPress Core


Ignore:
Timestamp:
06/23/2011 07:41:42 PM (14 years ago)
Author:
azaozz
Message:

Fix warning when DFW is loaded and the $post global is not set, props SidHarrell, fixes #17874

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r18254 r18331  
    17581758    $width = $width + 10; // compensate for the padding
    17591759    $dfw_width = get_user_setting( 'dfw_width', $width );
    1760     $save = $post->post_status == 'publish' ? __('Update') : __('Save');
     1760    $save = isset($post->post_status) && $post->post_status == 'publish' ? __('Update') : __('Save');
    17611761?>
    17621762<div id="wp-fullscreen-body">
Note: See TracChangeset for help on using the changeset viewer.