empty variable as failsafe

This commit is contained in:
Robin Cornett
2014-11-01 20:17:28 -04:00
parent fda801c41e
commit aaf7635a21
@@ -47,6 +47,8 @@ class Display_Featured_Image_Genesis_Common {
$item->original = wp_get_attachment_image_src( $item->fallback_id, 'displayfeaturedimage_backstretch' );
}
$item->title = $item->description = '';
// Set Post/Page Title
if ( is_singular() ) {
$item->title = get_the_title();
@@ -75,9 +77,6 @@ class Display_Featured_Image_Genesis_Common {
$item->title = genesis_get_cpt_option( 'headline' );
$item->description = genesis_get_cpt_option( 'intro_text' );
}
else {
$item->title = '';
}
// declare this last so that $item->original is set.
if ( ! is_admin() ) {