Changeset 28543
- Timestamp:
- 05/22/2014 06:50:11 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/revision.php
r28541 r28543 418 418 return array(); 419 419 420 $defaults = array( 'order' => ' ASC', 'orderby' => 'date ID', 'check_enabled' => true );420 $defaults = array( 'order' => 'DESC', 'orderby' => 'date ID', 'check_enabled' => true ); 421 421 $args = wp_parse_args( $args, $defaults ); 422 422 … … 428 428 if ( ! $revisions = get_children( $args ) ) 429 429 return array(); 430 431 $revisions = array_reverse( $revisions );432 430 433 431 return $revisions; -
trunk/tests/phpunit/tests/post/revisions.php
r28541 r28543 354 354 remove_filter( 'query', array( $this, '_filter_query' ) ); 355 355 global $wpdb; 356 $this->assertContains( "ORDER BY $wpdb->posts.post_date ASC, $wpdb->posts.ID ASC", $sql );356 $this->assertContains( "ORDER BY $wpdb->posts.post_date DESC, $wpdb->posts.ID DESC", $sql ); 357 357 return $sql; 358 358 }
Note: See TracChangeset
for help on using the changeset viewer.