mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
f7b63919c2
commit
57b3d031a7
@ -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 ) )
|
||||
|
||||
Loading…
Reference in New Issue
Block a user