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> </head>
<body <?php body_class(); ?>> <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> <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"> <header id="masthead" class="site-header" role="banner">

View File

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