Themes: Revert [36112]

Adding the `singular` class per default to the list of body classes is breaking the layout of Twenty Eleven and other themes. Twenty Eleven adds the `.singular` class only to single pages if the page doesn't use specific page templates.

Props flixos90, swissspidy.
Fixes #36510.

git-svn-id: https://develop.svn.wordpress.org/trunk@37249 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90)
2016-04-19 21:23:20 +00:00
parent 5ecf38977e
commit 4bd7394a2e
2 changed files with 1 additions and 5 deletions

View File

@@ -582,9 +582,6 @@ function get_body_class( $class = '' ) {
$classes[] = 'attachment';
if ( is_404() )
$classes[] = 'error404';
if ( is_singular() ) {
$classes[] = 'singular';
}
if ( is_single() ) {
$post_id = $wp_query->get_queried_object_id();