mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Revert [27184] until WP_Query
is patched to apply order
to each space-delimited orderby
value properly.
See #26042. Built from https://develop.svn.wordpress.org/trunk@27683 git-svn-id: http://core.svn.wordpress.org/trunk@27524 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8bc15ab4fc
commit
540c14079b
@ -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 ) )
|
||||
|
Loading…
Reference in New Issue
Block a user