Ticket #23470: 23470.diff
File 23470.diff, 613 bytes (added by , 12 years ago) |
---|
-
wp-includes/post-template.php
501 501 } 502 502 if ( is_page_template() ) { 503 503 $classes[] = 'page-template'; 504 $classes[] = 'page-template-' . sanitize_html_class( str_replace( '.', '-', get_page_template_slug( $page_id ) ) );504 $classes[] = 'page-template-' . sanitize_html_class( str_replace( array( '.', '/' ), '-', get_page_template_slug( $page_id ) ) ); 505 505 } else { 506 506 $classes[] = 'page-template-default'; 507 507 }