WordPress.org

Make WordPress Core

Ticket #11609: 11609.example.2.diff

File 11609.example.2.diff, 421 bytes (added by nacin, 4 years ago)

Not really necessary to prevent a single collision (.page .page), but allows for more specific class names. Thinking wontfix though.

  • wp-includes/post-template.php

     
    312312 
    313313        $classes[] = 'post-' . $post->ID; 
    314314        $classes[] = $post->post_type; 
     315        $classes[] = 'post-type-' . $post->post_type; 
    315316 
    316317        // sticky for Sticky Posts 
    317318        if ( is_sticky($post->ID) && is_home())