Fix #409 - Don't use clean URLs with default permalink structure

This commit is contained in:
Ben Word
2012-04-21 00:32:57 -06:00
parent 1da7109d03
commit 8354bee234

View File

@@ -42,7 +42,7 @@ if (stristr($_SERVER['SERVER_SOFTWARE'], 'apache') !== false) {
}
// only use clean urls if the theme isn't a child or an MU (Network) install
if (!is_multisite() && !is_child_theme()) {
if (!is_multisite() && !is_child_theme() && get_option('permalink_structure')) {
add_action('generate_rewrite_rules', 'roots_add_rewrites');
add_action('generate_rewrite_rules', 'roots_add_h5bp_htaccess');
if (!is_admin()) {