mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-06-05 15:08:20 +09:00
Fix author text if no option selected
This commit is contained in:
@@ -85,7 +85,9 @@ class Display_Featured_Image_Genesis_Author_Widget extends WP_Widget {
|
||||
}
|
||||
}
|
||||
|
||||
$text .= 'text' === $instance['author_info'] ? $instance['bio_text'] : get_the_author_meta( 'description', $instance['user'] );
|
||||
if ( $instance['author_info'] ) {
|
||||
$text .= 'text' === $instance['author_info'] ? $instance['bio_text'] : get_the_author_meta( 'description', $instance['user'] );
|
||||
}
|
||||
|
||||
$text .= $instance['page'] ? sprintf( ' <a class="pagelink" href="%s">%s</a>', get_page_link( $instance['page'] ), $instance['page_link_text'] ) : '';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user