diff --git a/wp-includes/revision.php b/wp-includes/revision.php index 52412cdb51..ee02ce97fe 100644 --- a/wp-includes/revision.php +++ b/wp-includes/revision.php @@ -417,7 +417,7 @@ function wp_get_post_revisions( $post_id = 0, $args = null ) { if ( ! $post || empty( $post->ID ) ) return array(); - $defaults = array( 'order' => 'ASC', 'orderby' => 'date ID', 'check_enabled' => true ); + $defaults = array( 'order' => 'DESC', 'orderby' => 'date ID', 'check_enabled' => true ); $args = wp_parse_args( $args, $defaults ); if ( $args['check_enabled'] && ! wp_revisions_enabled( $post ) ) @@ -428,8 +428,6 @@ function wp_get_post_revisions( $post_id = 0, $args = null ) { if ( ! $revisions = get_children( $args ) ) return array(); - $revisions = array_reverse( $revisions ); - return $revisions; }