From 4e15eaa830fecde49ac5958e2d76711635db3903 Mon Sep 17 00:00:00 2001 From: nacin Date: Fri, 11 Jun 2010 03:34:52 +0000 Subject: [PATCH] Use a switch. props jdub, see #13812. git-svn-id: http://svn.automattic.com/wordpress/trunk@15212 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 40871a222..01764f16e 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')) ) : ?> +
  • -