Make WordPress Core

Ticket #49869: 49869.patch

File 49869.patch, 1.4 KB (added by ttodua, 5 years ago)
  • src/wp-includes/comment-template.php

    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 ) { 
    23772377         *
    23782378         * @param string[] $fields Array of the default comment fields.
    23792379         */
    2380         $fields = apply_filters( 'comment_form_default_fields', $fields );
     2380        $fields = apply_filters( 'comment_form_default_fields', $fields, false );
    23812381
    23822382        $defaults = array(
    23832383                'fields'               => $fields,
  • src/wp-includes/comment.php

    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 ) { 
    32093209        $comment_author_url   = null;
    32103210        $comment_content      = null;
    32113211
     3212        $comment_data = apply_filters('comment_form_default_fields', $comment_data, true);
     3213
    32123214        if ( isset( $comment_data['comment_post_ID'] ) ) {
    32133215                $comment_post_ID = (int) $comment_data['comment_post_ID'];
    32143216        }