Make WordPress Core

Ticket #35651: 35651.diff

File 35651.diff, 1.1 KB (added by donmhico, 6 years ago)
  • src/wp-includes/comment-template.php

    diff --git src/wp-includes/comment-template.php src/wp-includes/comment-template.php
    index 3bae940dac..5a1a53bae5 100644
    function wp_list_comments( $args = array(), $comments = null ) { 
    21982198 *              and 200 characters, respectively.
    21992199 * @since 4.6.0 Introduced the 'action' argument.
    22002200 * @since 4.9.6 Introduced the 'cookies' default comment field.
     2201 * @since 5.3.0 Introduced `before_comment_form_submit_field` action.
    22012202 *
    22022203 * @param array       $args {
    22032204 *     Optional. Default arguments and form fields to override.
    function comment_form( $args = array(), $post_id = null ) { 
    25202521                                        get_comment_id_fields( $post_id )
    25212522                                );
    25222523
     2524                                /**
     2525                                 * Fires before the submit button.
     2526                                 *
     2527                                 * @since 5.3.0
     2528                                 *
     2529                                 * @param int    $post_id The post ID.
     2530                                 * @param string $args    Arguments passed to comment_form().
     2531                                 */
     2532                                do_action( 'before_comment_form_submit_field', $post_id, $args );
     2533
    25232534                                /**
    25242535                                 * Filters the submit field for the comment form to display.
    25252536                                 *