Ticket #39368: 39368.patch
File 39368.patch, 761 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/class-wp-editor.php
681 681 $body_class .= ' post-format-standard'; 682 682 } 683 683 684 if ( $page_template = get_page_template_slug( $post ) ) { 685 $page_template = str_replace( '.', '-', basename( $page_template, '.php' ) ); 684 $page_template = get_page_template_slug( $post ); 685 686 if ( $page_template !== false ) { 687 $page_template = $page_template === '' ? 'default' : str_replace( '.', '-', basename( $page_template, '.php' ) ); 686 688 $body_class .= ' page-template-' . sanitize_html_class( $page_template ); 687 689 } 688 690 }