fix $image_id variable for CPT

If a CPT doesn't have an image assigned, the fallback will be used.
This commit is contained in:
Robin Cornett
2015-01-28 11:02:41 -05:00
parent da019ecc13
commit cc870a11ea
@@ -75,7 +75,7 @@ class Display_Featured_Image_Genesis_Common {
elseif ( is_post_type_archive() ) {
$post_type = $object->name;
if ( isset( $displaysetting['post_type'][$post_type] ) ) {
if ( ! empty( $displaysetting['post_type'][$post_type] ) ) {
$image_id = self::get_image_id( $displaysetting['post_type'][$post_type] );
}
}