Make WordPress Core

Ticket #15015: comment-template.patch

File comment-template.patch, 1.5 KB (added by morpheu5, 14 years ago)

Proposed patch

  • comment-template.

    old new  
    15281528                'url'    => '<p class="comment-form-url"><label for="url">' . __( 'Website' ) . '</label>' .
    15291529                            '<input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" /></p>',
    15301530        );
     1531       
     1532        $submit_button =
     1533                '<p class="form-submit">' .
     1534                        '<input name="submit" type="submit" id="[args:id_submit]" value="[args:label_submit]" />' .
     1535                        get_comment_id_fields() .
     1536                '</p>';
    15311537
    15321538        $required_text = sprintf( ' ' . __('Required fields are marked %s'), '<span class="required">*</span>' );
    15331539        $defaults = array(
     
    15731579                                                <?php endif; ?>
    15741580                                                <?php echo apply_filters( 'comment_form_field_comment', $args['comment_field'] ); ?>
    15751581                                                <?php echo $args['comment_notes_after']; ?>
    1576                                                 <p class="form-submit">
    1577                                                         <input name="submit" type="submit" id="<?php echo esc_attr( $args['id_submit'] ); ?>" value="<?php echo esc_attr( $args['label_submit'] ); ?>" />
    1578                                                         <?php comment_id_fields(); ?>
    1579                                                 </p>
     1582                                                <?php
     1583                                                        echo str_replace(
     1584                                                                array(
     1585                                                                        '[args:id_submit]',
     1586                                                                        '[args:label_submit]'
     1587                                                                ),
     1588                                                                array(
     1589                                                                        esc_attr($args['id_submit']),
     1590                                                                        esc_attr($args['label_submit'])
     1591                                                                ),
     1592                                                                apply_filters('comment_form_submit_button', $submit_button)
     1593                                                        );
     1594                                                ?>
    15801595                                                <?php do_action( 'comment_form', $post_id ); ?>
    15811596                                        </form>
    15821597                                <?php endif; ?>