diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index ca12ad7940..3714cbfc3c 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -2153,6 +2153,7 @@ function wp_list_comments( $args = array(), $comments = null ) { * in the array of fields. * * @since 3.0.0 + * @since 4.2.0 Introduced 'submit_button' and 'submit_fields' arguments. * * @param array $args { * Optional. Default arguments and form fields to override. @@ -2180,6 +2181,11 @@ function wp_list_comments( $args = array(), $comments = null ) { * where %s is the author of the comment being replied to. * @type string $cancel_reply_link The translatable 'cancel reply' button label. Default 'Cancel reply'. * @type string $label_submit The translatable 'submit' button label. Default 'Post a comment'. + * @type string $submit_button HTML format for the Submit button. + * Default: ''. + * @type string $submit_field HTML format for the markup surrounding the Submit button and comment hidden + * fields. Default: '

%1$s %2$s', where %1$s is the + * submit button markup and %2$s is the comment hidden fields. * @type string $format The comment form format. Default 'xhtml'. Accepts 'xhtml', 'html5'. * } * @param int|WP_Post $post_id Post ID or WP_Post object to generate the form for. Default current post. @@ -2236,6 +2242,8 @@ function comment_form( $args = array(), $post_id = null ) { 'title_reply_to' => __( 'Leave a Reply to %s' ), 'cancel_reply_link' => __( 'Cancel reply' ), 'label_submit' => __( 'Post Comment' ), + 'submit_button' => '', + 'submit_field' => '

%1$s %2$s

', 'format' => 'xhtml', ); @@ -2350,11 +2358,45 @@ function comment_form( $args = array(), $post_id = null ) { echo apply_filters( 'comment_form_field_comment', $args['comment_field'] ); ?> -

- - -

+ tag. * diff --git a/wp-includes/version.php b/wp-includes/version.php index f1e228d1cb..97d291e03b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-alpha-31698'; +$wp_version = '4.2-alpha-31699'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.