From 43603436564fa3c87934f93048b12b1ae4fdf4b5 Mon Sep 17 00:00:00 2001 From: westi Date: Thu, 9 Jun 2011 11:12:39 +0000 Subject: [PATCH] Only show Comments are Closed when they are supported. Tidy up the logic to be clearer. Mark attachements as supporting comments. Fixes #17568 props duck_ git-svn-id: http://svn.automattic.com/wordpress/trunk@18211 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyeleven/comments.php | 25 ++++++--------------- wp-includes/post.php | 1 + 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/wp-content/themes/twentyeleven/comments.php b/wp-content/themes/twentyeleven/comments.php index 314905488..9eb8acc4c 100644 --- a/wp-content/themes/twentyeleven/comments.php +++ b/wp-content/themes/twentyeleven/comments.php @@ -63,24 +63,13 @@ - - - - - -

- - - - - + +

diff --git a/wp-includes/post.php b/wp-includes/post.php index 3c53624b2..151b66254 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -55,6 +55,7 @@ function create_initial_post_types() { 'rewrite' => false, 'query_var' => false, 'show_in_nav_menus' => false, + 'supports' => array( 'comments' ), ) ); register_post_type( 'revision', array(