Fix term_meta

4.3 backwards compat things
This commit is contained in:
Robin Cornett
2015-11-17 16:50:44 -05:00
parent 37422ecc0b
commit 362a25a40d
3 changed files with 10 additions and 5 deletions
@@ -156,8 +156,11 @@ class Display_Featured_Image_Genesis_Common {
}
// taxonomy
if ( is_category() || is_tag() || is_tax() ) {
$term_id = $object->term_id;
$image_id = displayfeaturedimagegenesis_term_image( $term_id );
$term_id = $object->term_id;
$term_meta = displayfeaturedimagegenesis_term_image( $term_id );
if ( $term_meta ) {
$image_id = $term_meta;
}
}
// any singular post/page/CPT