From 6a073f6d476c39d086e829e339f34ffabce0b365 Mon Sep 17 00:00:00 2001 From: nacin Date: Mon, 11 Jul 2011 05:31:57 +0000 Subject: [PATCH] Restore page-template-default body class. props peterwilsoncc, fixes #18018 for trunk. git-svn-id: http://svn.automattic.com/wordpress/trunk@18412 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index a2f5d1a56..f6625a1eb 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -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 ) )