From a2c5b5228fb6c17bb24afebb94358cae6c436fed Mon Sep 17 00:00:00 2001
From: "T.Todua" <7117978+ttodua@users.noreply.github.com>
Date: Fri, 10 Apr 2020 20:22:31 +0400
Subject: [PATCH 3/3] update
---
src/wp-includes/comment-template.php | 2 +-
src/wp-includes/comment.php | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/wp-includes/comment-template.php b/src/wp-includes/comment-template.php
index 2048dccdfa..071b0fd861 100644
a
|
b
|
function comment_form( $args = array(), $post_id = null ) { |
2377 | 2377 | * |
2378 | 2378 | * @param string[] $fields Array of the default comment fields. |
2379 | 2379 | */ |
2380 | | $fields = apply_filters( 'comment_form_default_fields', $fields ); |
| 2380 | $fields = apply_filters( 'comment_form_default_fields', $fields, false ); |
2381 | 2381 | |
2382 | 2382 | $defaults = array( |
2383 | 2383 | 'fields' => $fields, |
diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php
index 4149c691f9..b5ab96fc3c 100644
a
|
b
|
function wp_handle_comment_submission( $comment_data ) { |
3209 | 3209 | $comment_author_url = null; |
3210 | 3210 | $comment_content = null; |
3211 | 3211 | |
| 3212 | $comment_data = apply_filters('comment_form_default_fields', $comment_data, true); |
| 3213 | |
3212 | 3214 | if ( isset( $comment_data['comment_post_ID'] ) ) { |
3213 | 3215 | $comment_post_ID = (int) $comment_data['comment_post_ID']; |
3214 | 3216 | } |