mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-20 06:53:23 +09:00
Change post_meta disable
Initial work to change `_displayfeaturedimagegenesis_disable` to a select with image size options instead of being a checkbox. Options will be: * 0: default (consistent with checkbox) * 1: disable (consistent with checkbox) * 2: backstretch (new) * 3: large (new)
This commit is contained in:
@@ -350,7 +350,7 @@ class Display_Featured_Image_Genesis_Output {
|
||||
$post_type = get_post_type();
|
||||
$skip_singular = is_singular() && isset( $this->setting['skip'][ $post_type ] ) && $this->setting['skip'][ $post_type ] ? true : false;
|
||||
|
||||
if ( $this->get_skipped_posttypes() || $skip_singular || $exclude_front || $this->check_post_meta( '_displayfeaturedimagegenesis_disable' ) ) {
|
||||
if ( $this->get_skipped_posttypes() || $skip_singular || $exclude_front || 1 === (int) $this->check_post_meta( '_displayfeaturedimagegenesis_disable' ) ) {
|
||||
$disable = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user