mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-06-05 15:08:20 +09:00
Fix array for get CPT image
This commit is contained in:
@@ -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 ) ) {
|
||||
|
||||
Reference in New Issue
Block a user