Ticket #3961: 3961.diff
| File 3961.diff, 718 bytes (added by , 19 years ago) |
|---|
-
wp-includes/general-template.php
415 415 } 416 416 } elseif ( ( 'postbypost' == $type ) || ('alpha' == $type) ) { 417 417 ('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"); 419 419 if ( $arcresults ) { 420 420 foreach ( $arcresults as $arcresult ) { 421 421 if ( $arcresult->post_date != '0000-00-00 00:00:00' ) {