Merge pull request #820 from sixhours/master

Remove hfeed from header.php, add to body_class filter. See #740
This commit is contained in:
Tammie Lister 2015-11-11 20:27:21 +00:00
commit 7c2d3ce6eb
2 changed files with 6 additions and 1 deletions

View File

@ -21,7 +21,7 @@
</head>
<body <?php body_class(); ?>>
<div id="page" class="hfeed site">
<div id="page" class="site">
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', '_s' ); ?></a>
<header id="masthead" class="site-header" role="banner">

View File

@ -18,6 +18,11 @@ function _s_body_classes( $classes ) {
if ( is_multi_author() ) {
$classes[] = 'group-blog';
}
// Adds a class of hfeed to non-singular pages.
if ( ! is_singular() ) {
$classes[] = 'hfeed';
}
return $classes;
}