Make WordPress Core

Changeset 10452


Ignore:
Timestamp:
01/28/2009 07:40:25 PM (16 years ago)
Author:
markjaquith
Message:

Drafts have post_date populated now, so look for a zeroed out post_date_gmt to determine non-scheduled nature. fixes #8978 for 2.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7/wp-admin/includes/template.php

    r10245 r10452  
    24002400
    24012401    if ( $for_post )
    2402         $edit = ( in_array($post->post_status, array('draft', 'pending') ) && (!$post->post_date || '0000-00-00 00:00:00' == $post->post_date ) ) ? false : true;
     2402        $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;
    24032403
    24042404    $tab_index_attribute = '';
Note: See TracChangeset for help on using the changeset viewer.