diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php
index 36cf7e21d7..8ca1818bbf 100644
--- a/wp-includes/comment-template.php
+++ b/wp-includes/comment-template.php
@@ -878,17 +878,31 @@ class Walker_Comment extends Walker {
var $db_fields = array ('parent' => 'comment_parent', 'id' => 'comment_ID');
function start_lvl(&$output, $depth, $args) {
- if ( 'div' == $args['style'] )
- return;
-
- echo "
\n";
+ switch ( $args['style'] ) {
+ case 'div':
+ break;
+ case 'ol':
+ echo "\n";
+ break;
+ default:
+ case 'ul':
+ echo "\n";
+ break;
+ }
}
function end_lvl(&$output, $depth, $args) {
- if ( 'div' == $args['style'] )
- return;
-
- echo "
\n";
+ switch ( $args['style'] ) {
+ case 'div':
+ break;
+ case 'ol':
+ echo "
\n";
+ break;
+ default:
+ case 'ul':
+ echo "
\n";
+ break;
+ }
}
function start_el(&$output, $comment, $depth, $args) {
@@ -907,7 +921,7 @@ class Walker_Comment extends Walker {
else
$tag = 'li';
?>
- < "" id="comment-">
+ < id="comment-">
\n";
else
@@ -954,7 +972,7 @@ class Walker_Comment extends Walker {
* @param $args string|array Additional arguments
*/
function wp_list_comments(&$comments, $args = array() ) {
- $defaults = array('walker' => null, 'depth' => 3, 'style' => 'list', 'callback' => null);
+ $defaults = array('walker' => null, 'depth' => 3, 'style' => 'ul', 'callback' => null, 'end-callback' => null);
$r = wp_parse_args( $args, $defaults );