From d7b06570822b3730d3072570845b8eaff3afdc9a Mon Sep 17 00:00:00 2001 From: Scott Walkinshaw Date: Sun, 23 Oct 2011 19:30:54 -0600 Subject: [PATCH] mod_rewrite_rules is a filter, not action. --- inc/roots-htaccess.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/inc/roots-htaccess.php b/inc/roots-htaccess.php index 28c22f3..8018aa2 100644 --- a/inc/roots-htaccess.php +++ b/inc/roots-htaccess.php @@ -75,12 +75,11 @@ if (stristr($_SERVER['SERVER_SOFTWARE'], 'apache') !== false) { if (is_null($wp_filesystem)) WP_Filesystem(array(), ABSPATH); $filename = __DIR__ . '/h5bp-htaccess'; - $rules .= $wp_filesystem->get_contents($filename); - return $rules; + return $rules . $wp_filesystem->get_contents($filename); } - add_action('mod_rewrite_rules', 'roots_add_h5bp_htaccess'); + add_filter('mod_rewrite_rules', 'roots_add_h5bp_htaccess'); } ?>