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
This commit is contained in:
Scott Taylor 2014-03-24 14:45:44 +00:00
parent 54bc81e04f
commit 2583c954b9
1 changed files with 1 additions and 1 deletions

View File

@ -371,7 +371,7 @@ function wp_get_post_revisions( $post_id = 0, $args = null ) {
if ( ! $post || empty( $post->ID ) ) if ( ! $post || empty( $post->ID ) )
return array(); 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 ); $args = wp_parse_args( $args, $defaults );
if ( $args['check_enabled'] && ! wp_revisions_enabled( $post ) ) if ( $args['check_enabled'] && ! wp_revisions_enabled( $post ) )