Fix missing i18n in auto-draft titles. fixes #23565.
git-svn-id: http://core.svn.wordpress.org/trunk@23663 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b84dfe36bf
commit
f29bb91f05
|
@ -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 ) ) {
|
||||
|
|
Loading…
Reference in New Issue