Make WordPress Core


Ignore:
Timestamp:
12/01/2006 04:38:07 AM (18 years ago)
Author:
ryan
Message:

Use temporary title when creating empty posts. Props mdawaffe. fixes #3097

File:
1 edited

Legend:

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

    r4495 r4570  
    156156        die('-1');
    157157    if ( $id < 0 ) {
    158         if ( $pid = wp_insert_post() )
     158        $now = current_time('timestamp');
     159        if ( $pid = wp_insert_post( array(
     160            'post_title' => sprintf('Draft created on %s at %s', date(get_option('date_format'), $now), date(get_option('time_format'), $now))
     161        ) ) )
    159162            $mid = add_meta( $pid );
    160163        else
Note: See TracChangeset for help on using the changeset viewer.