Update for get background image
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 28 Sep 2015 14:16:26 +0000 (10:16 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 28 Sep 2015 14:16:26 +0000 (10:16 -0400)
remove global post

functions.php

index 1bc7401..7d0b572 100644 (file)
@@ -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");