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:
parent
cbbdd10c0e
commit
6114e7218d
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user