From 5555fb2f3060deced8d3a288973aa71e43114b2c Mon Sep 17 00:00:00 2001 From: Robin Cornett Date: Tue, 21 Apr 2015 14:39:26 -0400 Subject: [PATCH] set fallback value for is_paged variable --- includes/class-displayfeaturedimagegenesis-output.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/class-displayfeaturedimagegenesis-output.php b/includes/class-displayfeaturedimagegenesis-output.php index c436d4e..ce0ad32 100644 --- a/includes/class-displayfeaturedimagegenesis-output.php +++ b/includes/class-displayfeaturedimagegenesis-output.php @@ -52,7 +52,7 @@ class Display_Featured_Image_Genesis_Output { // check if they have enabled display on subsequent pages $displaysetting = get_option( 'displayfeaturedimagegenesis' ); - $is_paged = $displaysetting['is_paged']; + $is_paged = ! empty( $displaysetting['is_paged'] ) ? $displaysetting['is_paged'] : 0; // if there is no backstretch image set, or it is too small, or it's page 2+ and they didn't change the setting, die if ( empty( $item->backstretch ) || $width <= $medium || ( is_paged() && ! $is_paged ) ) { @@ -107,7 +107,7 @@ class Display_Featured_Image_Genesis_Output { // check if they have enabled display on subsequent pages $displaysetting = get_option( 'displayfeaturedimagegenesis' ); - $is_paged = $displaysetting['is_paged']; + $is_paged = ! empty( $displaysetting['is_paged'] ) ? $displaysetting['is_paged'] : 0; // if there is no backstretch image set, or it is too small, or it's page 2+ and they didn't change the setting, die if ( empty( $item->backstretch ) || $width <= $medium || ( is_paged() && ! $is_paged ) ) {