Changeset 2466
- Timestamp:
- 03/22/2005 01:55:07 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/classes.php
r2419 r2466 538 538 $where .= " GROUP BY $wpdb->posts.ID"; 539 539 $join = apply_filters('posts_join_paged', $join); 540 $request = " SELECT $distinct * FROM $wpdb->posts $join WHERE 1=1".$where." ORDER BY post_" . $q['orderby'] . " $limits"; 540 $orderby = "post_" . $q['orderby']; 541 $orderby = apply_filters('posts_orderby', $orderby); 542 $request = " SELECT $distinct * FROM $wpdb->posts $join WHERE 1=1".$where." ORDER BY " . $orderby . " $limits"; 541 543 542 544 if ($q['preview']) {
Note: See TracChangeset
for help on using the changeset viewer.