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

git-svn-id: http://svn.automattic.com/wordpress/trunk@19170 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-11-05 05:41:25 +00:00
parent 18782d3c8c
commit fa76992c20

View File

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