Don't output the {$post_type} post class in the admin, to avoid clashes with admin CSS. props c3mdigital. fixes #21203.
git-svn-id: http://core.svn.wordpress.org/trunk@21848 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a7cd7c3ac7
commit
7d7498f7ab
|
@ -322,7 +322,8 @@ function get_post_class( $class = '', $post_id = null ) {
|
|||
return $classes;
|
||||
|
||||
$classes[] = 'post-' . $post->ID;
|
||||
$classes[] = $post->post_type;
|
||||
if ( ! is_admin() )
|
||||
$classes[] = $post->post_type;
|
||||
$classes[] = 'type-' . $post->post_type;
|
||||
$classes[] = 'status-' . $post->post_status;
|
||||
|
||||
|
|
Loading…
Reference in New Issue