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