WordPress.org

Make WordPress Core

Ticket #23565: 23565.patch

File 23565.patch, 741 bytes (added by SergeyBiryukov, 14 months ago)
  • wp-admin/includes/ajax-actions.php

     
    929929                        $_POST['post_type'] = $post->post_type; 
    930930                        $_POST['post_status'] = 'draft'; 
    931931                        $now = current_time('timestamp', 1); 
    932                         $_POST['post_title'] = sprintf('Draft created on %s at %s', date(get_option('date_format'), $now), date(get_option('time_format'), $now)); 
     932                        $_POST['post_title'] = sprintf( __( 'Draft created on %1$s at %2$s' ), date( get_option( 'date_format' ), $now ), date( get_option( 'time_format' ), $now ) ); 
    933933 
    934934                        if ( $pid = edit_post() ) { 
    935935                                if ( is_wp_error( $pid ) ) {