Browse files

Merge pull request #731 from tomdxw/feature/htaccess-warning

Don't warn about unwritable htaccess if that option is disabled
  • Loading branch information...
2 parents c4e07a8 + 72958cb commit 59c7d06942f90988f764e30668cad0a9bc069968 @swalkinshaw swalkinshaw committed Apr 4, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/utils.php
View
4 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

0 comments on commit 59c7d06

Please sign in to comment.