Changeset 9405
- Timestamp:
- 10/29/2008 10:25:06 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment-template.php
r9386 r9405 227 227 * @param int $comment_id An optional comment ID 228 228 * @param int $post_id An optional post ID 229 * @param bool $echo Whether comment_class should echo or return 229 230 */ 230 231 function comment_class( $class = '', $comment_id = null, $post_id = null, $echo = true ) { … … 255 256 256 257 // Get the comment type (comment, trackback), 257 $classes[] = $comment->comment_type;258 $classes[] = ( empty( $comment->comment_type ) ) ? 'comment' : $comment->comment_type; 258 259 259 260 // If the comment author has an id (registered), then print the log in name
Note: See TracChangeset
for help on using the changeset viewer.