Make WordPress Core

Ticket #15015: 15015.4.diff

File 15015.4.diff, 1.8 KB (added by coffee2code, 10 years ago)

Update of 15015.3.diff that doesn't include <p> in filterable string and doesn't move comment_id_fields()

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

     
    22362236                'title_reply_to'       => __( 'Leave a Reply to %s' ),
    22372237                'cancel_reply_link'    => __( 'Cancel reply' ),
    22382238                'label_submit'         => __( 'Post Comment' ),
     2239                'submit_button'        => '<input name="%1$s" type="submit" id="%2$s" class="%3$s" value="%4$s" />',
    22392240                'format'               => 'xhtml',
    22402241        );
    22412242
     
    23502351                                                echo apply_filters( 'comment_form_field_comment', $args['comment_field'] );
    23512352                                                ?>
    23522353                                                <?php echo $args['comment_notes_after']; ?>
     2354
     2355                                                <?php
     2356                                                $args_submit_button = sprintf(
     2357                                                        $args['submit_button'],
     2358                                                        esc_attr( $args['name_submit'] ),
     2359                                                        esc_attr( $args['id_submit'] ),
     2360                                                        esc_attr( $args['class_submit'] ),
     2361                                                        esc_attr( $args['label_submit'] )
     2362                                                );
     2363
    23532364                                                <p class="form-submit">
    2354                                                         <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'] ); ?>" />
     2365                                                        /**
     2366                                                         * Filter the submit button for the comment form for display.
     2367                                                         *
     2368                                                         * @since 4.2.0
     2369                                                         *
     2370                                                         * @param string $args_submit_button The HTML formatted output of the comment submit button.
     2371                                                         * @param array  $args               The comment form arguments.
     2372                                                         */
     2373                                                        echo apply_filters( 'comment_form_submit_button', $args_submit_button, $args );
     2374                                                        ?>
    23552375                                                        <?php comment_id_fields( $post_id ); ?>
    23562376                                                </p>
     2377
    23572378                                                <?php
    23582379                                                /**
    23592380                                                 * Fires at the bottom of the comment form, inside the closing </form> tag.