Make WordPress Core

Ticket #6489: 6489-admin-ajax.php-post-template.php.diff

File 6489-admin-ajax.php-post-template.php.diff, 1.2 KB (added by janbrasna, 16 years ago)

Fixes #6489, obsoletes previous patches.

  • wp-admin/admin-ajax.php

    diff -urp svn/wp-admin/admin-ajax.php dev/wp-admin/admin-ajax.php
    svn dev case 'autosave' : // The name of this ac 
    720720        $do_lock = true;
    721721
    722722        $data = '';
    723         $message = sprintf( __('Draft Saved at %s.'), date( __('g:i:s a'), current_time( 'timestamp', true ) ) );
     723        $message = sprintf( __('Draft Saved at %s.'), date_i18n( __('g:i:s a') ) );
    724724
    725725        $supplemental = array();
    726726
  • wp-includes/post-template.php

    diff -urp svn/wp-includes/post-template.php dev/wp-includes/post-template.php
    svn dev function wp_post_revision_title( $revisi 
    10481048        $autosavef = __( '%s [Autosave]' );
    10491049        $currentf  = __( '%s [Current Revision]' );
    10501050
    1051         $date = date_i18n( $datef, strtotime( $revision->post_modified_gmt . ' +0000' ) );
     1051        $date = date_i18n( $datef, strtotime( $revision->post_modified ) );
    10521052        if ( $link && current_user_can( 'edit_post', $revision->ID ) && $link = get_edit_post_link( $revision->ID ) )
    10531053                $date = "<a href='$link'>$date</a>";
    10541054