From fdef2cc755b081a4c5dd86c9d6235a210319e455 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sat, 3 Jan 2015 06:26:38 +0000 Subject: [PATCH] Remove whitespace side effects from `comment_form()`. Props timersys. Fixes #30500. git-svn-id: https://develop.svn.wordpress.org/trunk@31036 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/comment-template.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wp-includes/comment-template.php b/src/wp-includes/comment-template.php index 4e75e7bca8..d00c4444cd 100644 --- a/src/wp-includes/comment-template.php +++ b/src/wp-includes/comment-template.php @@ -2228,8 +2228,7 @@ function comment_form( $args = array(), $post_id = null ) { */ $args = wp_parse_args( $args, apply_filters( 'comment_form_defaults', $defaults ) ); - ?> - + if ( comments_open( $post_id ) ) : ?>