get_option corrected to add excerpts to pages

This commit is contained in:
Robin Cornett
2014-11-11 12:37:21 -05:00
parent 4b1de18a1c
commit d2b304d447
@@ -82,8 +82,8 @@ class Display_Featured_Image_Genesis {
function add_plugin_supports() {
add_image_size( 'displayfeaturedimage_backstretch', 2000, 2000, false );
$move_excerpts = get_option( 'displayfeaturedimage_excerpts' );
if ( $move_excerpts ) {
$displaysetting = get_option( 'displayfeaturedimagegenesis' );
if ( $displaysetting['move_excerpts'] ) {
add_post_type_support( 'page', 'excerpt' );
}
}