Prevent double timezone offset when saving titleless AJAX-created drafts. fixes #3701

git-svn-id: https://develop.svn.wordpress.org/trunk@4882 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2007-02-14 22:44:57 +00:00
parent 855627315f
commit f2bedff370
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ case 'add-meta' :
if ( !current_user_can( 'edit_post', $id ) ) if ( !current_user_can( 'edit_post', $id ) )
die('-1'); die('-1');
if ( $id < 0 ) { if ( $id < 0 ) {
$now = current_time('timestamp'); $now = current_time('timestamp', 1);
if ( $pid = wp_insert_post( array( if ( $pid = wp_insert_post( array(
'post_title' => sprintf('Draft created on %s at %s', date(get_option('date_format'), $now), date(get_option('time_format'), $now)) 'post_title' => sprintf('Draft created on %s at %s', date(get_option('date_format'), $now), date(get_option('time_format'), $now))
) ) ) ) ) )