closes #193 - block access to files that show WordPress version

This commit is contained in:
Ben Word
2012-01-02 11:03:16 -07:00
parent bc307aa38f
commit 8c1f18f3da
2 changed files with 14 additions and 1 deletions

View File

@@ -68,6 +68,7 @@ if (stristr($_SERVER['SERVER_SOFTWARE'], 'apache') !== false) {
}
}
// add the contents of h5bp-htaccess into the .htaccess file
function roots_add_h5bp_htaccess($rules) {
global $wp_filesystem;
@@ -80,6 +81,7 @@ if (stristr($_SERVER['SERVER_SOFTWARE'], 'apache') !== false) {
}
add_filter('mod_rewrite_rules', 'roots_add_h5bp_htaccess');
}
?>
?>