From: Steve Sutton Date: Mon, 28 Sep 2015 14:16:26 +0000 (-0400) Subject: Update for get background image X-Git-Tag: v1.0.0^2~49 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=46ef52628d7a4b954e2644e0832748906fa63278;p=WP-Themes%2Fwesternup.git Update for get background image remove global post --- diff --git a/functions.php b/functions.php index 1bc7401..7d0b572 100644 --- a/functions.php +++ b/functions.php @@ -203,7 +203,6 @@ function glm_site_scripts() /* Header for posts*/ function glm_get_background() { - global $post; $eventPage = (is_single() && get_post_type() == 'ai1ec_event'); if (has_post_thumbnail() && !$eventPage) { $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full");