WordPress.org

Make WordPress Core

Ticket #5698: modified.diff

File modified.diff, 438 bytes (added by ryan, 8 years ago)

Make sure drafts have modified time set

  • wp-includes/post.php

     
    10621062                        $post_date_gmt = '0000-00-00 00:00:00'; 
    10631063        } 
    10641064 
    1065         if ( $update ) { 
     1065        if ( $update || '0000-00-00 00:00:00' == $post_date ) { 
    10661066                $post_modified     = current_time( 'mysql' ); 
    10671067                $post_modified_gmt = current_time( 'mysql', 1 ); 
    10681068        } else {