Make WordPress Core

Ticket #26042: 26042.2.diff

File 26042.2.diff, 575 bytes (added by nunomorgadinho, 11 years ago)
  • src/wp-includes/revision.php

     
    372372        if ( ! $post || empty( $post->ID ) )
    373373                return array();
    374374
    375         $defaults = array( 'order' => 'DESC', 'orderby' => 'date', 'check_enabled' => true );
     375        $defaults = array( 'order' => 'DESC', 'orderby' => 'date ID', 'check_enabled' => true );
    376376        $args = wp_parse_args( $args, $defaults );
    377377
    378378        if ( $args['check_enabled'] && ! wp_revisions_enabled( $post ) )