mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-14 03:56:09 +09:00
empty variable as failsafe
This commit is contained in:
@@ -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() ) {
|
||||
|
||||
Reference in New Issue
Block a user