Make WordPress Core

Ticket #15015: 15015.3.diff

File 15015.3.diff, 1.9 KB (added by DrewAPicture, 10 years ago)

formatting

  • 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
     2350                                                $args_submit_button = sprintf(
     2351                                                        $args['submit_button'],
     2352                                                        esc_attr( $args['name_submit'] ),
     2353                                                        esc_attr( $args['id_submit'] ),
     2354                                                        esc_attr( $args['class_submit'] ),
     2355                                                        esc_attr( $args['label_submit'] )
     2356                                                );
     2357
    23522358                                                /**
     2359                                                 * Filter the submit button for the comment form for display.
     2360                                                 *
     2361                                                 * @since 4.2.0
     2362                                                 *
     2363                                                 * @param string $args_submit_button The HTML formatted output of the comment submit button.
     2364                                                 * @param array  $args               The comment form arguments.
     2365                                                 */
     2366                                                echo apply_filters( 'comment_form_submit_button', $args_submit_button, $args );
     2367                                                ?>
     2368                                                <?php comment_id_fields( $post_id ); ?>
     2369                                                <?php
     2370                                                /**
    23532371                                                 * Fires at the bottom of the comment form, inside the closing </form> tag.
    23542372                                                 *
    23552373                                                 * @since 1.5.0