X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/8ab4a4532479e8db471032b51042ec8c4716d091..46588ee871246a923d972538dbc93b26f4fda932:/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 ) ) : ?>