Make WordPress Core

Ticket #18118: 35445.patch

File 35445.patch, 898 bytes (added by sebastian.pisula, 9 years ago)
  • wp-includes/post-template.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    590590                if ( isset( $post->post_type ) ) {
    591591                        $classes[] = 'single-' . sanitize_html_class($post->post_type, $post_id);
    592592                        $classes[] = 'postid-' . $post_id;
     593                        $classes[] = 'post-' . $post->post_name;
    593594
    594595                        // Post Format
    595596                        if ( post_type_supports( $post->post_type, 'post-formats' ) ) {
     
    667668                $post = get_post($page_id);
    668669
    669670                $classes[] = 'page-id-' . $page_id;
     671                $classes[] = 'page-' . $post->post_name;
    670672
    671673                if ( get_pages( array( 'parent' => $page_id, 'number' => 1 ) ) ) {
    672674                        $classes[] = 'page-parent';