From 7180c64f432256f974d77439e92f3b961e39d6a3 Mon Sep 17 00:00:00 2001 From: Robin Cornett Date: Sat, 28 Feb 2015 19:54:37 -0500 Subject: [PATCH] Fix array for get CPT image --- includes/helper-functions.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/helper-functions.php b/includes/helper-functions.php index a8800d2..a4156cd 100644 --- a/includes/helper-functions.php +++ b/includes/helper-functions.php @@ -91,11 +91,11 @@ function display_featured_image_genesis_get_default_image_url( $size='displayfea function display_featured_image_genesis_get_cpt_image_id() { $no_show = array( - is_admin(), - is_author(), - is_page(), - is_search(), - 'post' === get_post_type(), + $no_show[] = is_admin(), + $no_show[] = is_author(), + $no_show[] = is_page(), + $no_show[] = is_search(), + $no_show[] = 'post' === get_post_type(), ); if ( in_array( true, $no_show ) ) {