From 9caf313126fc196037778e124155e8973b8bb7bb Mon Sep 17 00:00:00 2001 From: Robin Cornett Date: Mon, 31 Aug 2015 12:37:09 -0400 Subject: [PATCH] Add function_exists check for Genesis pre 2.2 Hoping to lose the need for this check, though--trying to get blog template heading moved to its own function. --- includes/class-displayfeaturedimagegenesis-output.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-displayfeaturedimagegenesis-output.php b/includes/class-displayfeaturedimagegenesis-output.php index a3850bd..6479ec7 100644 --- a/includes/class-displayfeaturedimagegenesis-output.php +++ b/includes/class-displayfeaturedimagegenesis-output.php @@ -244,7 +244,7 @@ class Display_Featured_Image_Genesis_Output { $show_front_title = apply_filters( 'display_featured_image_genesis_excerpt_show_front_page_title', false ); $show_front_title = true === $show_front_title ? $show_front_title : false; - if ( ( is_front_page() && ! $show_front_title ) || ( is_page_template( 'page_blog.php' ) && genesis_a11y( 'headings' ) ) ) { + if ( ( is_front_page() && ! $show_front_title ) || ( is_page_template( 'page_blog.php' ) && function_exists( 'genesis_a11y' ) && genesis_a11y( 'headings' ) ) ) { return; } $class = is_singular() ? 'entry-title' : 'archive-title';