WordPress.org

Plugin Directory

Changeset 486188


Ignore:
Timestamp:
01/07/12 15:18:19 (2 years ago)
Author:
wpmuguru
Message:

duplicate categories, thumbnail size

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wordpress-mu-sitewide-tags/trunk/sitewide-tags.php

    r477289 r486188  
    375375    unset( $meta_keys ); 
    376376 
    377     if( get_sitewide_tags_option( 'tags_blog_thumbs' ) && ( $thumb_id = get_post_meta( $post->ID, '_thumbnail_id', true ) ) ) 
    378         $global_meta['thumbnail_html'] = wp_get_attachment_image( $thumb_id ); 
     377    if( get_sitewide_tags_option( 'tags_blog_thumbs' ) && ( $thumb_id = get_post_meta( $post->ID, '_thumbnail_id', true ) ) ) { 
     378        $thumb_size = apply_filters( 'sitewide_tags_thumb_size', 'thumbnail' ); 
     379        $global_meta['thumbnail_html'] = wp_get_attachment_image( $thumb_id, $thumb_size ); 
     380    } 
    379381 
    380382    // custom taxonomies  
     
    401403        foreach( $cats as $t => $d ) { 
    402404            $term = get_term_by( 'slug', $d['slug'], 'category' ); 
    403             if( $term && $term->parent == 0 && $term->name == $d['name'] ) { 
     405            if( $term && $term->parent == 0 ) { 
    404406                $category_id[] = $term->term_id; 
    405407                continue; 
Note: See TracChangeset for help on using the changeset viewer.