Changeset 8636
- Timestamp:
- 08/13/08 16:01:01 (3 months ago)
- Files:
-
- trunk/wp-includes/post.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/post.php
r8635 r8636 1355 1355 1356 1356 // If the post date is empty (due to having been new or a draft) and status is not 'draft', set date to now 1357 if ( empty($post_date)) {1357 if ( empty($post_date) || '0000-00-00 00:00:00' == $post_date ) { 1358 1358 if ( !in_array($post_status, array('draft', 'pending')) ) 1359 1359 $post_date = current_time('mysql'); … … 1362 1362 } 1363 1363 1364 if ( empty($post_date_gmt)) {1364 if ( empty($post_date_gmt) || '0000-00-00 00:00:00' == $post_date_gmt ) { 1365 1365 if ( !in_array($post_status, array('draft', 'pending')) ) 1366 1366 $post_date_gmt = get_gmt_from_date($post_date);
