From 2da37bbd79f0877ac63bf8e0e88620e43cf0a747 Mon Sep 17 00:00:00 2001 From: Robin Cornett Date: Sun, 1 Mar 2015 14:41:46 -0500 Subject: [PATCH] Simplify archive helper function --- includes/helper-functions.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/helper-functions.php b/includes/helper-functions.php index d45b0d6..3e2c47e 100644 --- a/includes/helper-functions.php +++ b/includes/helper-functions.php @@ -146,11 +146,7 @@ function display_featured_image_genesis_get_cpt_image_url( $size='displayfeature */ function display_featured_image_genesis_add_archive_thumbnails() { - $no_show = apply_filters( 'display_featured_image_genesis_archive_thumbnails', array( - $no_show[] = is_singular(), - ) ); - - if ( in_array( true, $no_show ) ) { + if ( is_singular() ) { return; } @@ -173,7 +169,11 @@ function display_featured_image_genesis_add_archive_thumbnails() { $permalink = get_the_permalink(); $alignment = genesis_get_option( 'image_alignment' ); - $image = ''; + $image = sprintf( '', + esc_url( $permalink ), + esc_url( $image_url ), + esc_attr( $alignment ) + ); echo $image; }