Ticket #26042: 26042.3.diff
File 26042.3.diff, 742 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/revision.php
371 371 if ( ! $post || empty( $post->ID ) ) 372 372 return array(); 373 373 374 $defaults = array( 'order' => ' DESC', 'orderby' => 'date ID', 'check_enabled' => true );374 $defaults = array( 'order' => 'ASC', 'orderby' => 'date ID', 'check_enabled' => true ); 375 375 $args = wp_parse_args( $args, $defaults ); 376 376 377 377 if ( $args['check_enabled'] && ! wp_revisions_enabled( $post ) ) … … 382 382 if ( ! $revisions = get_children( $args ) ) 383 383 return array(); 384 384 385 $revisions = array_reverse( $revisions ); 386 385 387 return $revisions; 386 388 } 387 389