Make WordPress Core

Ticket #44126: 44126.patch

File 44126.patch, 586 bytes (added by pross, 7 years ago)
  • wp-includes/comment-template.php

    diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php
    index f7626f5389..d87aa7b57b 100644
    a b function comment_form( $args = array(), $post_id = null ) { 
    22752275        );
    22762276
    22772277        $required_text = sprintf( ' ' . __( 'Required fields are marked %s' ), '<span class="required">*</span>' );
     2278       
     2279        if ( isset( $args['fields'] ) && ! isset( $args['fieilds']['cookies'] ) ) {
     2280                $args['fields']['cookies'] = $fields['cookies'];
     2281        }
    22782282
    22792283        /**
    22802284         * Filters the default comment form fields.