Only call wp_comment_reply() on post.php if the post type supports comments. props zeo, fixes #17931.

git-svn-id: https://develop.svn.wordpress.org/trunk@19170 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-11-05 05:41:25 +00:00
parent cbbdd10c0e
commit 6114e7218d
1 changed files with 4 additions and 1 deletions

View File

@ -362,7 +362,10 @@ do_action('dbx_post_sidebar'); ?>
</form>
</div>
<?php wp_comment_reply(); ?>
<?php
if ( post_type_supports( $post_type, 'comments' ) )
wp_comment_reply();
?>
<?php if ((isset($post->post_title) && '' == $post->post_title) || (isset($_GET['message']) && 2 > $_GET['message'])) : ?>
<script type="text/javascript">