Make WordPress Core


Ignore:
Timestamp:
03/14/2007 02:21:39 AM (18 years ago)
Author:
ryan
Message:

Fix order by in wp_get_archives(). Props mattbta. fixes #3961

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r5014 r5036  
    416416    } elseif ( ( 'postbypost' == $type ) || ('alpha' == $type) ) {
    417417        ('alpha' == $type) ? $orderby = "post_title ASC " : $orderby = "post_date DESC ";
    418         $arcresults = $wpdb->get_results("SELECT * FROM $wpdb->posts $join $where $orderby $limit");
     418        $arcresults = $wpdb->get_results("SELECT * FROM $wpdb->posts $join $where ORDER BY $orderby $limit");
    419419        if ( $arcresults ) {
    420420            foreach ( $arcresults as $arcresult ) {
Note: See TracChangeset for help on using the changeset viewer.