From 38e18d800c3dfac1256d7d568355d25a8beaaced Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sat, 10 Jan 2015 05:49:24 +0000 Subject: [PATCH] In `wp-admin/includes/revision.php`, `$post->modified` is a coding error. It should be `$post->post_modified`. See #30799. git-svn-id: https://develop.svn.wordpress.org/trunk@31123 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/revision.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/includes/revision.php b/src/wp-admin/includes/revision.php index ae9f93a4f7..9219f68f8d 100644 --- a/src/wp-admin/includes/revision.php +++ b/src/wp-admin/includes/revision.php @@ -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 @ G:i' ), strtotime( $post->post_modified ) ), + 'dateShort' => date_i18n( _x( 'j M @ G: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,