WordPress.org

Make WordPress Core

Ticket #23227: patch1.diff

File patch1.diff, 1.8 KB (added by bananastalktome, 5 years ago)
  • wp-admin/includes/ajax-actions.php

     
    10391039        $do_lock = true;
    10401040
    10411041        $data = $alert = '';
    1042         /* translators: draft saved date format, see http://php.net/date */
    1043         $draft_saved_date_format = __('g:i:s a');
    1044         /* translators: %s: date and time */
    1045         $message = sprintf( __('Draft saved at %s.'), date_i18n( $draft_saved_date_format ) );
     1042       
     1043        /* translators: %s: time */
     1044        $message = sprintf( __('Draft saved at %s.'), date_i18n( get_option('time_format') ) );
    10461045
    10471046        $supplemental = array();
    10481047        if ( isset($login_grace_period) )
  • wp-includes/post-template.php

     
    13001300        if ( !in_array( $revision->post_type, array( 'post', 'page', 'revision' ) ) )
    13011301                return false;
    13021302
    1303         /* translators: revision date format, see http://php.net/date */
    1304         $datef = _x( 'j F, Y @ G:i', 'revision date format');
    13051303        /* translators: 1: date */
    13061304        $autosavef = __( '%1$s [Autosave]' );
    13071305        /* translators: 1: date */
    13081306        $currentf  = __( '%1$s [Current Revision]' );
    13091307
    1310         $date = date_i18n( $datef, strtotime( $revision->post_modified ) );
     1308        $date_part = date_i18n( get_option('date_format'), strtotime( $revision->post_modified ) );
     1309        $time_part = date_i18n( get_option('time_format'), strtotime( $revision->post_modified ) );
     1310
     1311        /* translators: 1: date, 2: time */
     1312        $date = sprintf( __( '%1$s at %2$s' ), $date_part, $time_part );
    13111313        if ( $link && current_user_can( 'edit_post', $revision->ID ) && $link = get_edit_post_link( $revision->ID ) )
    13121314                $date = "<a href='$link'>$date</a>";
    13131315