Plugin Directory

Changeset 595578


Ignore:
Timestamp:
09/06/2012 08:57:22 PM (14 years ago)
Author:
codeext
Message:
 
Location:
network-shared-posts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • network-shared-posts/tags/1.1.2/network-shared-posts.php

    r587254 r595578  
    7676    'next' =>  'Next »'
    7777    ), $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);
    7979}
    8080
     
    8282########  OUTPUT FUNCTIONS  ####################
    8383
    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  )
     84function 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 )
    8585{
    8686$titles_only = strtolower($titles_only) == 'true'? true: false;
     
    153153                foreach($cat_arr as $cat_id)
    154154                {
    155                     $tax_id = $wpdb->get_var($wpdb->prepare("SELECT term_taxonomy_id FROM $TermTaxonomyTable WHERE (taxonomy = 'category' OR taxonomy = 'post_tag') AND term_id = $cat_id"));
     155                    $tax_id = $wpdb->get_var($wpdb->prepare("SELECT term_taxonomy_id FROM $TermTaxonomyTable WHERE term_id = $cat_id"));
    156156                    if($tax_id) $taxonomy_arr[] = $tax_id;
    157157                }
  • network-shared-posts/trunk/network-shared-posts.php

    r587254 r595578  
    7676    'next' =>  'Next »'
    7777    ), $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);
    7979}
    8080
     
    8282########  OUTPUT FUNCTIONS  ####################
    8383
    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  )
     84function 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 )
    8585{
    8686$titles_only = strtolower($titles_only) == 'true'? true: false;
     
    153153                foreach($cat_arr as $cat_id)
    154154                {
    155                     $tax_id = $wpdb->get_var($wpdb->prepare("SELECT term_taxonomy_id FROM $TermTaxonomyTable WHERE (taxonomy = 'category' OR taxonomy = 'post_tag') AND term_id = $cat_id"));
     155                    $tax_id = $wpdb->get_var($wpdb->prepare("SELECT term_taxonomy_id FROM $TermTaxonomyTable WHERE term_id = $cat_id"));
    156156                    if($tax_id) $taxonomy_arr[] = $tax_id;
    157157                }
Note: See TracChangeset for help on using the changeset viewer.