Fix post meta check

This commit is contained in:
Robin Cornett
2019-06-21 09:07:56 -04:00
parent 1510dd6c29
commit f6e9e8567d
@@ -260,8 +260,9 @@ class Display_Featured_Image_Genesis_Output {
$exclude_front = is_front_page() && $setting['exclude_front'];
$post_type = get_post_type();
$skip_singular = is_singular() && isset( $setting['skip'][ $post_type ] ) && $setting['skip'][ $post_type ] ? true : false;
$post_meta = is_singular() && 1 === (int) get_post_meta( get_the_ID(), '_displayfeaturedimagegenesis_disable', true );
if ( $this->get_skipped_posttypes() || $skip_singular || $exclude_front || 1 === (int) get_post_meta( get_the_ID(), '_displayfeaturedimagegenesis_disable', true ) ) {
if ( $this->get_skipped_posttypes() || $skip_singular || $exclude_front || $post_meta ) {
$disable = true;
}