]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/revision.php
WordPress 4.2
[autoinstalls/wordpress.git] / wp-admin / includes / revision.php
index ae9f93a4f7040a1d7e401ecc0ab914907fd95561..67bb56c761bc6d5b51f86ed32ec2ea74cc794cca 100644 (file)
@@ -203,8 +203,8 @@ function wp_prepare_revisions_for_js( $post, $selected_revision_id, $from = null
                        'id'         => $revision->ID,
                        'title'      => get_the_title( $post->ID ),
                        'author'     => $authors[ $revision->post_author ],
-                       'date'       => date_i18n( __( 'M j, Y @ G:i' ), $modified ),
-                       'dateShort'  => date_i18n( _x( 'j M @ G:i', 'revision date short format' ), $modified ),
+                       'date'       => date_i18n( __( 'M j, Y @ H:i' ), $modified ),
+                       'dateShort'  => date_i18n( _x( 'j M @ H:i', 'revision date short format' ), $modified ),
                        'timeAgo'    => sprintf( __( '%s ago' ), human_time_diff( $modified_gmt, $now_gmt ) ),
                        'autosave'   => $autosave,
                        'current'    => $current,
@@ -221,8 +221,8 @@ function wp_prepare_revisions_for_js( $post, $selected_revision_id, $from = null
                        'id'         => $post->ID,
                        'title'      => get_the_title( $post->ID ),
                        'author'     => $authors[ $post->post_author ],
-                       'date'       => date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->modified ) ),
-                       'dateShort'  => date_i18n( _x( 'j M @ G:i', 'revision date short format' ), strtotime( $post->modified ) ),
+                       'date'       => date_i18n( __( 'M j, Y @ H:i' ), strtotime( $post->post_modified ) ),
+                       'dateShort'  => date_i18n( _x( 'j M @ H:i', 'revision date short format' ), strtotime( $post->post_modified ) ),
                        'timeAgo'    => sprintf( __( '%s ago' ), human_time_diff( strtotime( $post->post_modified_gmt ), $now_gmt ) ),
                        'autosave'   => false,
                        'current'    => true,