Make WordPress Core

Ticket #30480: 30480.2.patch

File 30480.2.patch, 671 bytes (added by boonebgorges, 10 years ago)
  • src/wp-includes/general-template.php

    diff --git src/wp-includes/general-template.php src/wp-includes/general-template.php
    index e789013..88639d1 100644
    function wp_get_archives( $args = '' ) { 
    14821482                        }
    14831483                }
    14841484        } elseif ( ( 'postbypost' == $r['type'] ) || ('alpha' == $r['type'] ) ) {
    1485                 $orderby = ( 'alpha' == $r['type'] ) ? 'post_title ASC ' : 'post_date DESC ';
     1485                $orderby = ( 'alpha' == $r['type'] ) ? 'post_title ASC ' : 'post_date DESC, ID DESC ';
    14861486                $query = "SELECT * FROM $wpdb->posts $join $where ORDER BY $orderby $limit";
    14871487                $key = md5( $query );
    14881488                $key = "wp_get_archives:$key:$last_changed";