From bcde97082b3168ab98289c16d61086dc10dc37b3 Mon Sep 17 00:00:00 2001 From: Ulrich Pogson Date: Sun, 22 Dec 2013 17:53:20 +0100 Subject: [PATCH 1/6] Enable support for HTML5 markup. --- functions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions.php b/functions.php index d63f9f1d..84af115b 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' ); From cb52da6f23cee416fdb913542ed80404b1821718 Mon Sep 17 00:00:00 2001 From: Ulrich Pogson Date: Sun, 22 Dec 2013 21:33:16 +0100 Subject: [PATCH 2/6] Remove _s_comment --- comments.php | 12 ++++----- inc/template-tags.php | 60 ------------------------------------------- 2 files changed, 5 insertions(+), 67 deletions(-) diff --git a/comments.php b/comments.php index 786f9e6d..03e71b69 100644 --- a/comments.php +++ b/comments.php @@ -42,13 +42,11 @@ if ( post_password_required() ) {
    '_s_comment' ) ); + wp_list_comments( array( + 'style' => 'ol', + 'short_ping' => true, + 'avatar_size' => 74, + ) ); ?>
diff --git a/inc/template-tags.php b/inc/template-tags.php index 128a4790..20929773 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' => '
    ', - ) ) ); - ?> -
    - - Date: Sun, 22 Dec 2013 21:33:48 +0100 Subject: [PATCH 3/6] Delete searchform.php --- searchform.php | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 searchform.php diff --git a/searchform.php b/searchform.php deleted file mode 100644 index 5ecbc9b6..00000000 --- a/searchform.php +++ /dev/null @@ -1,14 +0,0 @@ - - From a29f2773aaa0c279cca27b631b666da1ca7b5b43 Mon Sep 17 00:00:00 2001 From: Ulrich Pogson Date: Sun, 22 Dec 2013 22:01:16 +0100 Subject: [PATCH 4/6] Remove arguments --- comments.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/comments.php b/comments.php index 03e71b69..473809da 100644 --- a/comments.php +++ b/comments.php @@ -41,13 +41,7 @@ if ( post_password_required() ) {
      - 'ol', - 'short_ping' => true, - 'avatar_size' => 74, - ) ); - ?> +
    1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> From 4f2b0fab63c9a7c083ce081abae7c10e75f69d52 Mon Sep 17 00:00:00 2001 From: Ulrich Pogson Date: Tue, 24 Dec 2013 00:26:50 +0100 Subject: [PATCH 5/6] Add necessary arguments --- comments.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/comments.php b/comments.php index 473809da..d68911be 100644 --- a/comments.php +++ b/comments.php @@ -41,7 +41,12 @@ if ( post_password_required() ) {
      - + 'ol', + 'short_ping' => true + ) ); + ?>
    1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> From 28a3044da99bee899be05266e7cc00a0d5a39357 Mon Sep 17 00:00:00 2001 From: obenland Date: Mon, 20 Jan 2014 20:34:10 -0800 Subject: [PATCH 6/6] _s: Minor formatting update. --- comments.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comments.php b/comments.php index d68911be..afc3f802 100644 --- a/comments.php +++ b/comments.php @@ -43,8 +43,8 @@ if ( post_password_required() ) {
      'ol', - 'short_ping' => true + 'style' => 'ol', + 'short_ping' => true, ) ); ?>