Fix array for get CPT image

This commit is contained in:
Robin Cornett
2015-02-28 19:54:37 -05:00
parent 5dc0619248
commit 7180c64f43
+5 -5
View File
@@ -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 ) ) {