WordPress.org

Make WordPress Core

Changeset 5036


Ignore:
Timestamp:
03/14/07 02:21:39 (7 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.