WordPress.org

Make WordPress Core

Ticket #5120: default-theme-comments.diff

File default-theme-comments.diff, 1.1 KB (added by Elpie, 5 years ago)
  • comments-popup.php

     
    9191      <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> 
    9292          <input type="hidden" name="redirect_to" value="<?php echo esc_attr($_SERVER["REQUEST_URI"]); ?>" /> 
    9393          <input name="submit" type="submit" tabindex="5" value="Say It!" /> 
     94        <?php do_action('comment_form', $post->ID); ?> 
    9495        </p> 
    95         <?php do_action('comment_form', $post->ID); ?> 
    9696</form> 
    9797<?php } else { // comments are closed ?> 
    9898<p>Sorry, the comment form is closed at this time.</p> 
  • comments.php

     
    8585 
    8686<p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" /> 
    8787<?php comment_id_fields(); ?> 
     88<?php do_action('comment_form', $post->ID); ?> 
    8889</p> 
    89 <?php do_action('comment_form', $post->ID); ?> 
    9090 
     91 
    9192</form> 
    9293 
    9394<?php endif; // If registration required and not logged in ?>