From 5e499ba0599e410fb5621e5ed3f5da61c1ed4baf Mon Sep 17 00:00:00 2001 From: Ben Word Date: Wed, 10 Aug 2011 21:55:25 -0600 Subject: [PATCH] not sure why i'm having to do this, but i'm sick and it's getting rid of the undefined index error so it'll work for now --- inc/roots-cleanup.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/roots-cleanup.php b/inc/roots-cleanup.php index 9ae9b2d..0d59a4c 100644 --- a/inc/roots-cleanup.php +++ b/inc/roots-cleanup.php @@ -80,6 +80,7 @@ if (!is_admin() && $roots_options['root_relative_urls']) { // remove root relative URLs on any attachments in the feed function roots_root_relative_attachment_urls() { + $roots_options = roots_get_theme_options(); if (!is_feed() && $roots_options['root_relative_urls']) { add_filter('wp_get_attachment_url', 'roots_root_relative_url'); add_filter('wp_get_attachment_link', 'roots_root_relative_url');