Fix missing i18n in auto-draft titles. fixes #23565.

git-svn-id: https://develop.svn.wordpress.org/trunk@23663 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2013-03-12 08:57:27 +00:00
parent 96f4a86553
commit 18d4ae9d54
1 changed files with 1 additions and 1 deletions

View File

@ -925,7 +925,7 @@ function wp_ajax_add_meta() {
$_POST['post_type'] = $post->post_type;
$_POST['post_status'] = 'draft';
$now = current_time('timestamp', 1);
$_POST['post_title'] = sprintf('Draft created on %s at %s', date(get_option('date_format'), $now), date(get_option('time_format'), $now));
$_POST['post_title'] = sprintf( __( 'Draft created on %1$s at %2$s' ), date( get_option( 'date_format' ), $now ), date( get_option( 'time_format' ), $now ) );
if ( $pid = edit_post() ) {
if ( is_wp_error( $pid ) ) {