From ae6989c9e0f3354becaf0052fec4126fc86b46f4 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Wed, 10 Aug 2011 21:47:26 -0600 Subject: [PATCH] missed one on the last commit - refs #104 and 09784082cfae0ef0022fa6f2ddaa6395b919e72d --- inc/roots-cleanup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/roots-cleanup.php b/inc/roots-cleanup.php index eb823d1..9ae9b2d 100644 --- a/inc/roots-cleanup.php +++ b/inc/roots-cleanup.php @@ -80,7 +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() { - if (!is_feed()) { + 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'); }