Ticket #18018: 18018-B.diff
File 18018-B.diff, 919 bytes (added by , 13 years ago) |
---|
-
Users/peterwilson/Sites/int.pwcc.cc/wptrac/wp-includes/post-template.php
486 486 $classes[] = 'page-child'; 487 487 $classes[] = 'parent-pageid-' . $post->post_parent; 488 488 } 489 //page-template is added to all pages 490 $classes[] = 'page-template'; 489 491 if ( is_page_template() ) { 490 $classes[] = 'page-template';491 492 $classes[] = 'page-template-' . sanitize_html_class( str_replace( '.', '-', get_post_meta( $page_id, '_wp_page_template', true ) ), '' ); 493 } else { 494 //add page-template-default to pages without template 495 $classes[] = 'page-template-default'; 492 496 } 493 497 } elseif ( is_search() ) { 494 498 if ( !empty( $wp_query->posts ) )