From 72958cbaafe30772c1e511b3fa147018cd37d829 Mon Sep 17 00:00:00 2001 From: Tom Adams Date: Thu, 4 Apr 2013 15:55:35 -0400 Subject: [PATCH] Don't warn about unwritable htaccess if that option is disabled --- lib/utils.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/utils.php b/lib/utils.php index 538ca41..d2c7030 100644 --- a/lib/utils.php +++ b/lib/utils.php @@ -95,7 +95,9 @@ function roots_htaccess_writable() { } } } -add_action('admin_init', 'roots_htaccess_writable'); +if (current_theme_supports('h5bp-htaccess')) { + add_action('admin_init', 'roots_htaccess_writable'); +} /** * Return WordPress subdirectory if applicable