[wp-trac] [WordPress Trac] #9465: Comments CSS-Classnames aren't
properly assigned in get_comment_class()
WordPress Trac
wp-trac at lists.automattic.com
Sun Apr 5 15:10:56 GMT 2009
#9465: Comments CSS-Classnames aren't properly assigned in get_comment_class()
--------------------------+-------------------------------------------------
Reporter: hakre | Owner: anonymous
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.7.2
Component: Template | Version:
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
the function get_comment_class() (''/wp-includes/comment-template.php'')
has a little flaw in adding class names to the class array. this can lead
to problems if filter want to check for a specific classname in the
classes-array.
it can be easily fixed. this will prevent plugin authors and theme
designers to create complicated hotfix code.
the supplied patch fixes this behaviour for the ''byuser'' classname being
in one with the ''comment-author-...'' .
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9465>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list