Fix author image

This commit is contained in:
Robin Cornett
2015-07-26 16:44:11 -04:00
parent 70780f1414
commit 88489af7cf
2 changed files with 2 additions and 2 deletions
@@ -178,7 +178,7 @@ class Display_Featured_Image_Genesis_Common {
}
}
if ( is_author() ) {
$image_id = get_the_author_meta( 'displayfeaturedimagegenesis_author', (int) get_query_var( 'author' ) );
$image_id = get_the_author_meta( 'displayfeaturedimagegenesis', (int) get_query_var( 'author' ) );
}
// taxonomy
if ( is_category() || is_tag() || is_tax() ) {
@@ -97,7 +97,7 @@ class Display_Featured_Image_Genesis_Author_Widget extends WP_Widget {
$user_name = ( ! empty ( $display_name ) && genesis_a11y() ) ? '<span class="screen-reader-text">' . $display_name . ': </span>' : '';
if ( $instance['posts_link'] && $instance['link_text'] ) {
printf( '<div class="posts_link posts-link"><a href="%s">%s%s</a></div>', esc_url( get_author_posts_url( $instance['user'] ) ), esc_attr( $user_name ), esc_attr( $instance['link_text'] ) );
printf( '<div class="posts_link posts-link"><a href="%s">%s%s</a></div>', esc_url( get_author_posts_url( $instance['user'] ) ), wp_kses_post( $user_name ), esc_attr( $instance['link_text'] ) );
}
echo $args['after_widget'];