mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 18:13:00 +01:00
Shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@18414 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
57b3d031a7
commit
f733b63c93
@ -490,7 +490,7 @@ function get_body_class( $class = '' ) {
|
|||||||
$classes[] = 'page-template';
|
$classes[] = 'page-template';
|
||||||
$classes[] = 'page-template-' . sanitize_html_class( str_replace( '.', '-', get_post_meta( $page_id, '_wp_page_template', true ) ), '' );
|
$classes[] = 'page-template-' . sanitize_html_class( str_replace( '.', '-', get_post_meta( $page_id, '_wp_page_template', true ) ), '' );
|
||||||
} else {
|
} else {
|
||||||
$classes[] = 'page-template-default';
|
$classes[] = 'page-template-default';
|
||||||
}
|
}
|
||||||
} elseif ( is_search() ) {
|
} elseif ( is_search() ) {
|
||||||
if ( !empty( $wp_query->posts ) )
|
if ( !empty( $wp_query->posts ) )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user