From 54a577c53704e08517c21f31ec141263166307c8 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 28 Apr 2010 04:28:51 +0000 Subject: [PATCH] Add full HTML filter to comment_form(), along with an echo arg. props joostdevalk, fixes #12564. git-svn-id: https://develop.svn.wordpress.org/trunk@14268 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/comment-template.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index 5ec8990c76..57a3609092 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -1515,10 +1515,11 @@ function comment_form( $args = array(), $post_id = null ) { 'title_reply_to' => __( 'Leave a Reply to %s' ), 'cancel_reply_link' => __( 'Cancel reply' ), 'label_submit' => __( 'Post Comment' ), + 'echo' => true, ); $args = wp_parse_args( $args, apply_filters( 'comment_form_defaults', $defaults ) ); - + ob_start(); ?> @@ -1556,8 +1557,12 @@ function comment_form( $args = array(), $post_id = null ) { - -