Make WordPress Core

Changeset 19170


Ignore:
Timestamp:
11/05/2011 05:41:25 AM (13 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r19119 r19170  
    363363</div>
    364364
    365 <?php wp_comment_reply(); ?>
     365<?php
     366if ( post_type_supports( $post_type, 'comments' ) )
     367    wp_comment_reply();
     368?>
    366369
    367370<?php if ((isset($post->post_title) && '' == $post->post_title) || (isset($_GET['message']) && 2 > $_GET['message'])) : ?>
Note: See TracChangeset for help on using the changeset viewer.