diff --git a/comments.php b/comments.php index 786f9e6..afc3f80 100644 --- a/comments.php +++ b/comments.php @@ -42,13 +42,10 @@ if ( post_password_required() ) {
    '_s_comment' ) ); + wp_list_comments( array( + 'style' => 'ol', + 'short_ping' => true, + ) ); ?>
diff --git a/functions.php b/functions.php index d63f9f1..84af115 100644 --- a/functions.php +++ b/functions.php @@ -53,6 +53,9 @@ function _s_setup() { 'default-color' => 'ffffff', 'default-image' => '', ) ) ); + + // Enable support for HTML5 markup. + add_theme_support( 'html5', array( 'comment-list', 'search-form', 'comment-form', ) ); } endif; // _s_setup add_action( 'after_setup_theme', '_s_setup' ); diff --git a/inc/template-tags.php b/inc/template-tags.php index 77e3d42..c852eb7 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -65,66 +65,6 @@ function _s_post_nav() { } endif; -if ( ! function_exists( '_s_comment' ) ) : -/** - * Template for comments and pingbacks. - * - * Used as a callback by wp_list_comments() for displaying the comments. - */ -function _s_comment( $comment, $args, $depth ) { - $GLOBALS['comment'] = $comment; - - if ( 'pingback' == $comment->comment_type || 'trackback' == $comment->comment_type ) : ?> - -
  • > -
    - ', '' ); ?> -
    - - - -
  • > -
    -
    -
    - - says:', '_s' ), sprintf( '%s', get_comment_author_link() ) ); ?> -
    - - - - comment_approved ) : ?> -

    - -
    - -
    - -
    - - 'div-comment', - 'depth' => $depth, - 'max_depth' => $args['max_depth'], - 'before' => '
    ', - 'after' => '
    ', - ) ) ); - ?> -
    - - -