From 40a4e2c3f2662898fa740570573d1fcede339924 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Tue, 19 Apr 2016 21:24:27 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@37249 git-svn-id: http://core.svn.wordpress.org/trunk@37215 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 3 --- wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index a441d74231..3da42457c8 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -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(); diff --git a/wp-includes/version.php b/wp-includes/version.php index 0759611018..93a8a81aa2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-alpha-37247'; +$wp_version = '4.6-alpha-37249'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.