[wp-trac] [WordPress Trac] #18447: Include the comment type when showing the comment table list in wp-admin
WordPress Trac
wp-trac at lists.automattic.com
Tue Aug 16 17:30:35 UTC 2011
#18447: Include the comment type when showing the comment table list in wp-admin
----------------------------+-----------------------------
Reporter: josephscott | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 3.2.1
Severity: normal | Keywords: has-patch
----------------------------+-----------------------------
For Javascript that would like to enhance the comment table list in wp-
admin ( wp-admin/edit-comments.php ) it would be really handy to have the
comment type included in the HTML. This would allow Javascript to apply
the changes to specific comment types easily.
I'm including a patch that does this by adding an attribute to the TR :
data-commenttype. TR entries would look like:
{{{
<tr id='comment-191' class='unapproved' data-commenttype='pingback'>
<tr id='comment-190' class='approved' data-commenttype='comment'>
}}}
and so on.
I choose data-commenttype as the name to avoid the confusing rewrite
situation that happens with data-* attributes. The other style that would
have been safe would be data-comment_type, but I think that would be even
more confusing.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18447>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list