From 57b3d031a79eefd7ad817cf2ecd4122172b37dc7 Mon Sep 17 00:00:00 2001 From: Andrew 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: https://develop.svn.wordpress.org/trunk@18412 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 a2f5d1a563..f6625a1eb9 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 ) )