From: Laury GvR Date: Mon, 8 Jan 2018 19:22:17 +0000 (-0500) Subject: Fix on previous commit X-Git-Tag: v1.0.0^2~11 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=f4380aba72b35c08a8ed0e14f414bb64e068b823;p=WP-Themes%2Fvisitescanaba.git Fix on previous commit --- diff --git a/functions.php b/functions.php index 915da44..a8557ab 100644 --- a/functions.php +++ b/functions.php @@ -79,15 +79,11 @@ function glm_get_header($memberID = false) { if ((has_post_thumbnail() && $post->post_type == 'page') || is_page('member-detail')) { if(!$memberID){ $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full"); - $image_data = $image_data[0]; $bur = "a"; } else { $image_data = apply_filters('member_images',$memberID,true,'original'); - if ( is_array($image_data) ) { - $image_data = $image_data[0]; - } - $bur = "b"; } + $image_data = $image_data[0]; if ($image_data) { echo ' bur="'.$bur.'" style="background-image: url('.$image_data.');height:0;padding:0;padding-bottom:22%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 420px; "'; } else {