Fix #409 - Don't use clean URLs with default permalink structure
This commit is contained in:
@@ -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
|
// 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_rewrites');
|
||||||
add_action('generate_rewrite_rules', 'roots_add_h5bp_htaccess');
|
add_action('generate_rewrite_rules', 'roots_add_h5bp_htaccess');
|
||||||
if (!is_admin()) {
|
if (!is_admin()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user