From 2583c954b9cc988dbfbcfe83f820a02d7b4ff177 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Mon, 24 Mar 2014 14:45:44 +0000 Subject: [PATCH] Revert [27184] until `WP_Query` is patched to apply `order` to each space-delimited `orderby` value properly. See #26042. git-svn-id: https://develop.svn.wordpress.org/trunk@27683 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/revision.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/revision.php b/src/wp-includes/revision.php index 781f1a0975..12cc8e1c4f 100644 --- a/src/wp-includes/revision.php +++ b/src/wp-includes/revision.php @@ -371,7 +371,7 @@ function wp_get_post_revisions( $post_id = 0, $args = null ) { if ( ! $post || empty( $post->ID ) ) return array(); - $defaults = array( 'order' => 'DESC', 'orderby' => 'date ID', 'check_enabled' => true ); + $defaults = array( 'order' => 'DESC', 'orderby' => 'date', 'check_enabled' => true ); $args = wp_parse_args( $args, $defaults ); if ( $args['check_enabled'] && ! wp_revisions_enabled( $post ) )