From c4bda6097941fa7380fbd2f6e7467365d6b263b0 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 11 Jun 2010 03:34:52 +0000 Subject: [PATCH] Use a switch. props jdub, see #13812. git-svn-id: https://develop.svn.wordpress.org/trunk@15212 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-content/themes/twentyten/functions.php | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/wp-content/themes/twentyten/functions.php b/wp-content/themes/twentyten/functions.php index 40871a2226..01764f16e0 100644 --- a/wp-content/themes/twentyten/functions.php +++ b/wp-content/themes/twentyten/functions.php @@ -351,8 +351,10 @@ if ( ! function_exists( 'twentyten_comment' ) ) : * @since Twenty Ten 1.0 */ function twentyten_comment( $comment, $args, $depth ) { - $GLOBALS['comment'] = $comment; ?> - comment_type ) : ?> + $GLOBALS['comment'] = $comment; + switch ( $comment->comment_type ) : + case '' : + ?>
  • id="li-comment-">
    @@ -378,10 +380,16 @@ function twentyten_comment( $comment, $args, $depth ) {
    - comment_type, array('pingback', 'trackback')) ) : ?> +
  • -