mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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:
parent
18782d3c8c
commit
fa76992c20
@ -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