Did you change your theme? Nothing in trac indicates this has been removed.
Hi,
No it was a custom written theme with this in header.php:
<body <?php body_class( $class ); ?>>
Before this generated “page-template-default” as one of the many classes on pages with no template selected. it used to look like this:
<body class=”page page-id-10 page-template page-template-default”>
now, on those pages, just the following is generated:
<body class=”page page-id-10″>
Why would you need “page-template-default” on the body element?
it used to look like this:
<body class=”page page-id-10 page-template page-template-default”>
now, on those pages, just the following is generated:
<body class=”page page-id-10″>
This was fixed back in 2.8.1, The class was never supposed to be added when no page template was specified. See [11567] and the ticket mentioned in that commit
Sorry scrap that, Yes, that caused a similar bug back in 2.8, however, that’s not what caused it.
It was a bug that the page-template-default was ever shown. See #17458 for details.
@kyleduncan If you want it back, adding this to your themes functions.php file will do so.
function mytheme_body_class_template_default($classes) {
if (is_page() AND !is_page_template()) { $classes[] = 'page-template-default'; }
return $classes;
}
add_filter('body_class', 'mytheme_body_class_template_default');
@esmi It’s a handy css hook to use if each page template has a very different layout.
Thanks to all for the explanations.