[wp-trac] [WordPress Trac] #15206: Add class to 'comment awaiting moderation' element

WordPress Trac wp-trac at lists.automattic.com
Sun Oct 24 21:35:07 UTC 2010


#15206: Add class to 'comment awaiting moderation' element
--------------------------+-------------------------------------------------
 Reporter:  nacin         |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.1
Component:  Comments      |     Version:     
 Severity:  normal        |    Keywords:     
--------------------------+-------------------------------------------------
 On my site, I needed to override twentyten_comment() just so I could
 effectively target the <em> element that contains "Your comment is
 awaiting moderation."

 This is derived directly from Walker_Comment.

 I wished we could wrap that in a <div> without screwing up a lot of
 styling, given that it is generally styled as a de-facto block-level
 element -- indeed, it is followed immediately by an unsemantic <br/> --
 but maybe we can just add a class to it?

 Patch attached that handles both Walker_Comment and twentyten_comment.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15206>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list