Changeset 595578
- Timestamp:
- 09/06/2012 08:57:22 PM (14 years ago)
- Location:
- network-shared-posts
- Files:
-
- 2 edited
-
tags/1.1.2/network-shared-posts.php (modified) (3 diffs)
-
trunk/network-shared-posts.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
network-shared-posts/tags/1.1.2/network-shared-posts.php
r587254 r595578 76 76 'next' => 'Next »' 77 77 ), $atts)); 78 get_net_shared_posts($limit, $days, $titles_only, $wrap_start, $wrap_end, $thumbnail, $post_type, $include_blog, $exclude_blog, $taxonomy,$paginate, $pages, $list, $excerpt_length, $auto_excerpt, $full_meta, $size, $image_class, $date_format, $full_text, $end_size, $mid_size, $prev, $next );78 get_net_shared_posts($limit, $days, $titles_only, $wrap_start, $wrap_end, $thumbnail, $post_type, $include_blog, $exclude_blog, $taxonomy,$paginate, $pages, $list, $excerpt_length, $auto_excerpt, $full_meta, $size, $image_class, $date_format, $full_text, $end_size, $mid_size, $prev, $next, $show_author); 79 79 } 80 80 … … 82 82 ######## OUTPUT FUNCTIONS #################### 83 83 84 function get_net_shared_posts($limit, $days, $titles_only, $wrap_start, $wrap_end, $thumbnail, $post_type, $include_blog, $exclude_blog, $taxonomy, $paginate, $pages, $list, $excerpt_length, $auto_excerpt, $full_meta, $size , $image_class, $date_format, $full_text, $end_size, $mid_size, $prev, $next )84 function get_net_shared_posts($limit, $days, $titles_only, $wrap_start, $wrap_end, $thumbnail, $post_type, $include_blog, $exclude_blog, $taxonomy, $paginate, $pages, $list, $excerpt_length, $auto_excerpt, $full_meta, $size , $image_class, $date_format, $full_text, $end_size, $mid_size, $prev, $next, $show_author ) 85 85 { 86 86 $titles_only = strtolower($titles_only) == 'true'? true: false; … … 153 153 foreach($cat_arr as $cat_id) 154 154 { 155 $tax_id = $wpdb->get_var($wpdb->prepare("SELECT term_taxonomy_id FROM $TermTaxonomyTable WHERE (taxonomy = 'category' OR taxonomy = 'post_tag') ANDterm_id = $cat_id"));155 $tax_id = $wpdb->get_var($wpdb->prepare("SELECT term_taxonomy_id FROM $TermTaxonomyTable WHERE term_id = $cat_id")); 156 156 if($tax_id) $taxonomy_arr[] = $tax_id; 157 157 } -
network-shared-posts/trunk/network-shared-posts.php
r587254 r595578 76 76 'next' => 'Next »' 77 77 ), $atts)); 78 get_net_shared_posts($limit, $days, $titles_only, $wrap_start, $wrap_end, $thumbnail, $post_type, $include_blog, $exclude_blog, $taxonomy,$paginate, $pages, $list, $excerpt_length, $auto_excerpt, $full_meta, $size, $image_class, $date_format, $full_text, $end_size, $mid_size, $prev, $next );78 get_net_shared_posts($limit, $days, $titles_only, $wrap_start, $wrap_end, $thumbnail, $post_type, $include_blog, $exclude_blog, $taxonomy,$paginate, $pages, $list, $excerpt_length, $auto_excerpt, $full_meta, $size, $image_class, $date_format, $full_text, $end_size, $mid_size, $prev, $next, $show_author); 79 79 } 80 80 … … 82 82 ######## OUTPUT FUNCTIONS #################### 83 83 84 function get_net_shared_posts($limit, $days, $titles_only, $wrap_start, $wrap_end, $thumbnail, $post_type, $include_blog, $exclude_blog, $taxonomy, $paginate, $pages, $list, $excerpt_length, $auto_excerpt, $full_meta, $size , $image_class, $date_format, $full_text, $end_size, $mid_size, $prev, $next )84 function get_net_shared_posts($limit, $days, $titles_only, $wrap_start, $wrap_end, $thumbnail, $post_type, $include_blog, $exclude_blog, $taxonomy, $paginate, $pages, $list, $excerpt_length, $auto_excerpt, $full_meta, $size , $image_class, $date_format, $full_text, $end_size, $mid_size, $prev, $next, $show_author ) 85 85 { 86 86 $titles_only = strtolower($titles_only) == 'true'? true: false; … … 153 153 foreach($cat_arr as $cat_id) 154 154 { 155 $tax_id = $wpdb->get_var($wpdb->prepare("SELECT term_taxonomy_id FROM $TermTaxonomyTable WHERE (taxonomy = 'category' OR taxonomy = 'post_tag') ANDterm_id = $cat_id"));155 $tax_id = $wpdb->get_var($wpdb->prepare("SELECT term_taxonomy_id FROM $TermTaxonomyTable WHERE term_id = $cat_id")); 156 156 if($tax_id) $taxonomy_arr[] = $tax_id; 157 157 }
Note: See TracChangeset
for help on using the changeset viewer.