Fix duplicate 'home' in body_class

This commit is contained in:
Ben Word
2012-04-29 19:30:52 -06:00
parent d4032f54a4
commit bb5e314c18

View File

@@ -588,6 +588,10 @@ function roots_body_class() {
$cat = get_the_category();
}
if (is_front_page()) {
return; // Avoid duplicate 'home' class when using static front page
}
if(!empty($cat)) {
return $cat[0]->slug;
} elseif (isset($term->slug)) {