Restore page-template-default body class. props peterwilsoncc, fixes #18018 for trunk.

git-svn-id: https://develop.svn.wordpress.org/trunk@18412 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-07-11 05:31:57 +00:00
parent f7b63919c2
commit 57b3d031a7

View File

@ -489,6 +489,8 @@ function get_body_class( $class = '' ) {
if ( is_page_template() ) {
$classes[] = 'page-template';
$classes[] = 'page-template-' . sanitize_html_class( str_replace( '.', '-', get_post_meta( $page_id, '_wp_page_template', true ) ), '' );
} else {
$classes[] = 'page-template-default';
}
} elseif ( is_search() ) {
if ( !empty( $wp_query->posts ) )