From f5f30069814c288affcc34a86e078bec0b08c3e2 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sat, 3 Jan 2015 06:27:24 +0000 Subject: [PATCH] Remove whitespace side effects from `comment_form()`. Props timersys. Fixes #30500. Built from https://develop.svn.wordpress.org/trunk@31036 git-svn-id: http://core.svn.wordpress.org/trunk@31017 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment-template.php | 3 +-- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index 4e75e7bca8..d00c4444cd 100644 --- a/wp-includes/comment-template.php +++ b/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 ) ) : ?>