Make WordPress Core

Ticket #14035: 14035.diff

File 14035.diff, 536 bytes (added by jk0, 15 years ago)

Changed get_posts to use orderby's default (post_date).

  • wp-includes/link-template.php

     
    11871187
    11881188        $order = $start ? 'ASC' : 'DESC';
    11891189
    1190         return get_posts( array('numberposts' => 1, 'no_found_rows' => true, 'order' => $order, 'orderby' => 'ID', 'category' => $categories) );
     1190        return get_posts( array('numberposts' => 1, 'no_found_rows' => true, 'order' => $order, 'category' => $categories) );
    11911191}
    11921192
    11931193/**