Make WordPress Core

Ticket #15015: 15015.2.diff

File 15015.2.diff, 1.9 KB (added by coffee2code, 10 years ago)

Refreshed the 15015.diff patch. See associated comment for details.

  • src/wp-includes/comment-template.php

     
    22302230                'title_reply_to'       => __( 'Leave a Reply to %s' ),
    22312231                'cancel_reply_link'    => __( 'Cancel reply' ),
    22322232                'label_submit'         => __( 'Post Comment' ),
     2233                'submit_button'        => '<p class="form-submit"><input name="%1$s" type="submit" id="%2$s" class="%3$s" value="%4$s" /></p>',
    22332234                'format'               => 'xhtml',
    22342235        );
    22352236
     
    23442345                                                echo apply_filters( 'comment_form_field_comment', $args['comment_field'] );
    23452346                                                ?>
    23462347                                                <?php echo $args['comment_notes_after']; ?>
    2347                                                 <p class="form-submit">
    2348                                                         <input name="<?php echo esc_attr( $args['name_submit'] ); ?>" type="submit" id="<?php echo esc_attr( $args['id_submit'] ); ?>" class="<?php echo esc_attr( $args['class_submit'] ); ?>" value="<?php echo esc_attr( $args['label_submit'] ); ?>" />
    2349                                                         <?php comment_id_fields( $post_id ); ?>
    2350                                                 </p>
     2348
    23512349                                                <?php
    23522350                                                /**
     2351                                                 * Filter the submit button for the comment form for display.
     2352                                                 *
     2353                                                 * @since 4.2
     2354                                                 *
     2355                                                 * @param string $args_submit_button The HTML formatted output of the comment submit button.
     2356                                                 * @param array  $args               The comment form arguments.
     2357                                                 */
     2358                                                echo apply_filters(
     2359                                                        'comment_form_submit_button',
     2360                                                        sprintf(
     2361                                                                $args['submit_button'],
     2362                                                                esc_attr( $args['name_submit'] ),
     2363                                                                esc_attr( $args['id_submit'] ),
     2364                                                                esc_attr( $args['class_submit'] ),
     2365                                                                esc_attr( $args['label_submit'] )
     2366                                                        ),
     2367                                                        $args
     2368                                                ); ?>
     2369                                                <?php comment_id_fields( $post_id ); ?>
     2370                                                <?php
     2371                                                /**
    23532372                                                 * Fires at the bottom of the comment form, inside the closing </form> tag.
    23542373                                                 *
    23552374                                                 * @since 1.5.0