Changeset 8640
- Timestamp:
- 08/13/2008 07:15:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.6/wp-includes/post.php
r8532 r8640 1277 1277 1278 1278 // If the post date is empty (due to having been new or a draft) and status is not 'draft', set date to now 1279 if ( empty($post_date)) {1279 if ( empty($post_date) || '0000-00-00 00:00:00' == $post_date ) { 1280 1280 if ( !in_array($post_status, array('draft', 'pending')) ) 1281 1281 $post_date = current_time('mysql'); … … 1284 1284 } 1285 1285 1286 if ( empty($post_date_gmt)) {1286 if ( empty($post_date_gmt) || '0000-00-00 00:00:00' == $post_date_gmt ) { 1287 1287 if ( !in_array($post_status, array('draft', 'pending')) ) 1288 1288 $post_date_gmt = get_gmt_from_date($post_date);
Note: See TracChangeset
for help on using the changeset viewer.