Skip to content

Commit

Permalink
Restore page-template-default body class. props peterwilsoncc, fixes …
Browse files Browse the repository at this point in the history
…#18018 for 3.2.

git-svn-id: http://svn.automattic.com/wordpress/branches/3.2@18413 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
nacin committed Jul 11, 2011
1 parent 1b15d66 commit e2c9df9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wp-includes/post-template.php
Expand Up @@ -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 ) )
Expand Down

0 comments on commit e2c9df9

Please sign in to comment.