Make WordPress Core

Ticket #15080: 15080.updated.patch

File 15080.updated.patch, 2.1 KB (added by lessbloat, 12 years ago)
  • wp-includes/comment-template.php

     
    15241524                'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' .
    15251525                            '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p>',
    15261526                'email'  => '<p class="comment-form-email"><label for="email">' . __( 'Email' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' .
    1527                             '<input id="email" name="email" type="text" value="' . esc_attr(  $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' /></p>',
     1527                            '<input id="email" name="email" type="email" pattern="" value="' . esc_attr(  $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' /></p>',
    15281528                'url'    => '<p class="comment-form-url"><label for="url">' . __( 'Website' ) . '</label>' .
    1529                             '<input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" /></p>',
     1529                            '<input id="url" name="url" type="url" pattern="" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" /></p>',
    15301530        );
    15311531
    15321532        $required_text = sprintf( ' ' . __('Required fields are marked %s'), '<span class="required">*</span>' );
     
    15561556                                        <?php echo $args['must_log_in']; ?>
    15571557                                        <?php do_action( 'comment_form_must_log_in_after' ); ?>
    15581558                                <?php else : ?>
    1559                                         <form action="<?php echo site_url( '/wp-comments-post.php' ); ?>" method="post" id="<?php echo esc_attr( $args['id_form'] ); ?>">
     1559                                        <form action="<?php echo site_url( '/wp-comments-post.php' ); ?>" method="post" id="<?php echo esc_attr( $args['id_form'] ); ?>" novalidate>
    15601560                                                <?php do_action( 'comment_form_top' ); ?>
    15611561                                                <?php if ( is_user_logged_in() ) : ?>
    15621562                                                        <?php echo apply_filters( 'comment_form_logged_in', $args['logged_in_as'], $commenter, $user_identity ); ?>