From b8b60909591ebc890eb6d7f9378246bacaf0f782 Mon Sep 17 00:00:00 2001 From: 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: http://svn.automattic.com/wordpress/trunk@14268 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 5ec8990c7..57a360909 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 ) { - -