Ticket #9860: postbypost_filters_clean_2.9.patch
| File postbypost_filters_clean_2.9.patch, 772 bytes (added by kevinB, 4 years ago) |
|---|
-
general-template.php
898 898 } 899 899 } elseif ( ( 'postbypost' == $type ) || ('alpha' == $type) ) { 900 900 $orderby = ('alpha' == $type) ? "post_title ASC " : "post_date DESC "; 901 $query = "SELECT * FROM $wpdb->posts $join $where ORDER BY $orderby $limit"; 901 902 $distinct = apply_filters('getarchives_distinct', "", $r); 903 $fields = apply_filters('getarchives_fields', "*", $r); 904 905 $query = "SELECT $distinct $fields FROM $wpdb->posts $join $where ORDER BY $orderby $limit"; 906 902 907 $key = md5($query); 903 908 $cache = wp_cache_get( 'wp_get_archives' , 'general'); 904 909 if ( !isset( $cache[ $key ] ) ) {
