Changeset 355095
- Timestamp:
- 03/04/2011 02:35:29 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-e-commerce/branches/3.8-development/wpsc-core/wpsc-functions.php
r355080 r355095 527 527 } 528 528 } 529 530 529 if ( isset( $wp_query->post->ID ) ) 531 530 $post_id = $wp_query->post->ID; … … 846 845 } 847 846 $whichcat .= " AND $wpdb->posts.post_status IN ('publish', 'locked', 'private') "; 847 848 848 $groupby = "{$wpdb->posts}.ID"; 849 849 850 850 $this->sql_components['join'] = $join; 851 $this->sql_components['where'] = $whichcat;852 851 $this->sql_components['fields'] = "{$wpdb->posts}.*, {$wpdb->term_taxonomy}.term_id"; 853 $this->sql_components['order_by'] = "{$wpdb->term_taxonomy}.term_id";854 852 $this->sql_components['group_by'] = $groupby; 853 854 855 856 857 858 859 860 861 855 862 add_filter( 'posts_join', array( &$this, 'join_sql' ) ); 856 863 add_filter( 'posts_where', array( &$this, 'where_sql' ) );
Note: See TracChangeset
for help on using the changeset viewer.