WordPress.org

Make WordPress Core

Ticket #21203: 21203.2.patch

File 21203.2.patch, 464 bytes (added by c3mdigital, 22 months ago)

Wraps post type in in is_admin

  • wp-includes/post-template.php

     
    319319                return $classes; 
    320320 
    321321        $classes[] = 'post-' . $post->ID; 
    322         $classes[] = $post->post_type; 
     322        if ( ! is_admin() ) 
     323                $classes[] = $post->post_type; 
    323324        $classes[] = 'type-' . $post->post_type; 
    324325        $classes[] = 'status-' . $post->post_status; 
    325326