WordPress.org

Make WordPress Core

Changeset 10451


Ignore:
Timestamp:
01/28/09 19:37:36 (7 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 trunk

File:
1 edited

Legend:

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

    r10446 r10451  
    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 = ''; 
Note: See TracChangeset for help on using the changeset viewer.