WordPress.org

Make WordPress Core

Ticket #8978: 8978.001.diff

File 8978.001.diff, 672 bytes (added by markjaquith, 9 years ago)
  • wp-admin/includes/template.php

     
    24382438        global $wp_locale, $post, $comment;
    24392439
    24402440        if ( $for_post )
    2441                 $edit = ( in_array($post->post_status, array('draft', 'pending') ) && (!$post->post_date || '0000-00-00 00:00:00' == $post->post_date ) ) ? false : true;
     2441                $edit = ( in_array($post->post_status, array('draft', 'pending') ) && (!$post->post_date_gmt || '0000-00-00 00:00:00' == $post->post_date_gmt ) ) ? false : true;
    24422442
    24432443        $tab_index_attribute = '';
    24442444        if ( (int) $tab_index > 0 )