Make sure rewrites are added to .htaccess immediately after activation

This commit is contained in:
Ben Word
2013-05-01 11:05:23 -05:00
parent cab26194a3
commit ec94cfb2f5
3 changed files with 5 additions and 7 deletions

View File

@@ -35,7 +35,7 @@ function roots_clean_urls($content) {
}
}
if (!is_multisite() && !is_child_theme() && get_option('permalink_structure')) {
if (!is_multisite() && !is_child_theme()) {
if (current_theme_supports('rewrites')) {
add_action('generate_rewrite_rules', 'roots_add_rewrites');
}