X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/899389d1e4043331309c0433543419258b230b60..38ac4bc40322ecdc4052db4263466573e01fa51f:/wp-includes/comment-template.php diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index 7af2f3b1..c5e5c5f2 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -2252,6 +2252,9 @@ function comment_form( $args = array(), $post_id = null ) { */ $args = wp_parse_args( $args, apply_filters( 'comment_form_defaults', $defaults ) ); + // Ensure that the filtered args contain all required default values. + $args = array_merge( $defaults, $args ); + if ( comments_open( $post_id ) ) : ?>