Make WordPress Core

Ticket #25229: comments-popup.diff

File comments-popup.diff, 952 bytes (added by natejacobs, 11 years ago)

wp-includes/theme-compat/comments.php

  • wp-includes/theme-compat/comments-popup.php

     
    9797          <input type="hidden" name="redirect_to" value="<?php echo esc_attr($_SERVER["REQUEST_URI"]); ?>" />
    9898          <input name="submit" type="submit" tabindex="5" value="<?php esc_attr_e('Say It!' ); ?>" />
    9999        </p>
    100         <?php do_action('comment_form', $post->ID); ?>
     100        <?php
     101                /**
     102                 * Add data to the end of the comment form below the submit button.
     103                 *
     104                 * This use of the comment_form action hook is part of a deprecated file as of 3.0.0.
     105                 *
     106                 * @since 1.5.2
     107                 *
     108                 * @param int $post->ID The post ID.
     109                 */
     110                do_action('comment_form', $post->ID);
     111        ?>
    101112</form>
    102113<?php } else { // comments are closed ?>
    103114<p><?php _e('Sorry, the comment form is closed at this time.'); ?></p>