[wp-trac] [WordPress Trac] #21203: A CPT named 'code' triggers wierd font/order bugs in admin

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 9 19:32:34 UTC 2012


#21203: A CPT named 'code' triggers wierd font/order bugs in admin
--------------------------+------------------------------
 Reporter:  clarklab      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  UI            |     Version:  3.0
 Severity:  minor         |  Resolution:
 Keywords:  needs-patch   |
--------------------------+------------------------------

Comment (by c3mdigital):

 Replying to [comment:4 scribu]:
 > I assume the issue here is that there's some css class being generated
 based on the post type name.
 >
 > We should prefix that class, to avoid collisions. Example:
 `class="cpt-<?php echo $post_type; ?>"`.

 Makes sense but would require changing get_post_class:


 {{{
         $classes[] = 'post-' . $post->ID;
         $classes[] = $post->post_type;
         $classes[] = 'type-' . $post->post_type;
         $classes[] = 'status-' . $post->post_status;
 }}}


 Might break some themes.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21203#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list