Make WordPress Core

Changeset 21848


Ignore:
Timestamp:
09/14/2012 06:57:11 PM (13 years ago)
Author:
nacin
Message:

Don't output the {$post_type} post class in the admin, to avoid clashes with admin CSS. props c3mdigital. fixes #21203.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r21799 r21848  
    323323
    324324    $classes[] = 'post-' . $post->ID;
    325     $classes[] = $post->post_type;
     325    if ( ! is_admin() )
     326        $classes[] = $post->post_type;
    326327    $classes[] = 'type-' . $post->post_type;
    327328    $classes[] = 'status-' . $post->post_status;
Note: See TracChangeset for help on using the changeset viewer.