Ticket #18362: post_status.18362.1.patch
File post_status.18362.1.patch, 596 bytes (added by , 14 years ago) |
---|
-
wp-includes/post.php
2504 2504 $post_date = current_time('mysql'); 2505 2505 2506 2506 if ( empty($post_date_gmt) || '0000-00-00 00:00:00' == $post_date_gmt ) { 2507 if ( !in_array( $post_status, array( 'draft', 'pending', 'auto-draft' ) ) )2507 if ( in_array( $post_status, array( 'future', 'publish', 'trash', 'private', 'inherit' ) ) ) 2508 2508 $post_date_gmt = get_gmt_from_date($post_date); 2509 2509 else 2510 2510 $post_date_gmt = '0000-00-00 00:00:00';