Ticket #17568: 17568.return-early-from-comments-2.diff
File 17568.return-early-from-comments-2.diff, 1.0 KB (added by , 14 years ago) |
---|
-
wp-includes/post.php
55 55 'rewrite' => false, 56 56 'query_var' => false, 57 57 'show_in_nav_menus' => false, 58 'supports' => array( 'comments' ), 58 59 ) ); 59 60 60 61 register_post_type( 'revision', array( -
wp-content/themes/twentyeleven/comments.php
12 12 * @since Twenty Eleven 1.0 13 13 */ 14 14 ?> 15 16 <?php 17 /* Return early if post_type does not support comments. */ 18 if ( ! post_type_supports( get_post_type(), 'comments' ) ) { 19 return; 20 } 21 ?> 22 15 23 <div id="comments"> 16 24 <?php if ( post_password_required() ) : ?> 17 25 <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyeleven' ); ?></p>