WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/14/2007 10:44:57 PM (15 years ago)
Author:
markjaquith
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r4760 r4882  
    156156        die('-1');
    157157    if ( $id < 0 ) {
    158         $now = current_time('timestamp');
     158        $now = current_time('timestamp', 1);
    159159        if ( $pid = wp_insert_post( array(
    160160            'post_title' => sprintf('Draft created on %s at %s', date(get_option('date_format'), $now), date(get_option('time_format'), $now))
Note: See TracChangeset for help on using the changeset viewer.