- Timestamp:
- Apr 6, 2009, 12:33:22 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/xpress_default/blocks/popular_posts_block_theme.php
r142 r157 23 23 $block = array(); 24 24 $item_no = 0; 25 26 $selected_author_id = xpress_selected_author_id(false); 25 27 26 28 global $wpdb,$wp_query; … … 51 53 52 54 $where = " WHERE ($post_tb.post_type = 'post') AND ($post_tb.post_status = 'publish')"; 55 if (!empty($selected_author_id)){ 56 $where .= " AND $post_tb.post_author = $selected_author_id "; 57 } 53 58 54 59 if ($cat_select) { … … 73 78 $where .= " AND ($post2cat_tb.category_id IN ($cat_id))"; 74 79 } 80 if (!empty($selected_author_id)){ 81 $where .= " AND $post_tb.post_author = $selected_author_id "; 82 } 83 75 84 } 76 85 if ($show_month_range > 0) {
Note: See TracChangeset
for help on using the changeset viewer.