Make WordPress Core

Changeset 9405


Ignore:
Timestamp:
10/29/2008 10:25:06 PM (17 years ago)
Author:
westi
Message:

Make all comments classy. Fixes #8006 props filosofo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment-template.php

    r9386 r9405  
    227227 * @param int $comment_id An optional comment ID
    228228 * @param int $post_id An optional post ID
     229 * @param bool $echo Whether comment_class should echo or return
    229230 */
    230231function comment_class( $class = '', $comment_id = null, $post_id = null, $echo = true ) {
     
    255256
    256257    // Get the comment type (comment, trackback),
    257     $classes[] = $comment->comment_type;
     258    $classes[] = ( empty( $comment->comment_type ) ) ? 'comment' : $comment->comment_type;
    258259
    259260    // If the comment author has an id (registered), then print the log in name
Note: See TracChangeset for help on using the changeset viewer.