Skip to content

Commit

Permalink
Merge branch 'master' of github.com:retlehs/roots
Browse files Browse the repository at this point in the history
  • Loading branch information
retlehs committed Apr 26, 2011
2 parents 164a416 + ad5e287 commit a39bc3d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions includes/roots-cleanup.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,13 @@ function roots_clean_plugins($content) {
return $content;
}

// only use clean urls if the theme isn't a child
if ($theme_data['Template'] === '') {
// only use clean urls if the theme isn't a child or an MU (Network) install
if ((!defined('WP_ALLOW_MULTISITE') || (defined('WP_ALLOW_MULTISITE') && WP_ALLOW_MULTISITE !== true)) && $theme_data['Template'] === '') {
add_action('generate_rewrite_rules', 'roots_add_rewrites');
add_filter('plugins_url', 'roots_clean_plugins');
add_filter('bloginfo', 'roots_clean_assets');
add_filter('stylesheet_directory_uri', 'roots_clean_assets');
add_filter('template_directory_uri', 'roots_clean_assets');
}

// redirect /?s to /search/
Expand All @@ -73,6 +74,7 @@ function roots_root_relative_url($input) {
add_filter('bloginfo_url', 'roots_root_relative_url');
add_filter('theme_root_uri', 'roots_root_relative_url');
add_filter('stylesheet_directory_uri', 'roots_root_relative_url');
add_filter('template_directory_uri', 'roots_root_relative_url');
add_filter('the_permalink', 'roots_root_relative_url');
add_filter('wp_list_pages', 'roots_root_relative_url');
add_filter('wp_list_categories', 'roots_root_relative_url');
Expand Down

0 comments on commit a39bc3d

Please sign in to comment.