Revisions: sort by date, not modified, to match revisions meta box.

See #24425.

git-svn-id: https://develop.svn.wordpress.org/trunk@24668 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2013-07-12 05:41:39 +00:00
parent d88021e236
commit 2e2ed518e9

View File

@ -66,7 +66,7 @@ function wp_prepare_revisions_for_js( $post, $selected_revision_id, $from = null
$revisions = array();
$now_gmt = time();
$revisions = wp_get_post_revisions( $post->ID, array( 'order' => 'ASC', 'orderby' => 'modified' ) );
$revisions = wp_get_post_revisions( $post->ID, array( 'order' => 'ASC' ) );
cache_users( wp_list_pluck( $revisions, 'post_author' ) );