|
13 | 13 | * @see https://docs.woocommerce.com/document/template-structure/
|
14 | 14 | * @author WooThemes
|
15 | 15 | * @package WooCommerce/Templates
|
16 |
| - * @version 3.2.0 |
| 16 | + * @version 3.5.0 |
17 | 17 | */
|
18 | 18 |
|
19 | 19 | if ( ! defined( 'ABSPATH' ) ) {
|
|
84 | 84 | 'comment_notes_after' => '',
|
85 | 85 | 'fields' => [
|
86 | 86 | 'author' => '<p class="comment-form-author"><label for="author">' . esc_html__( 'Name', 'bigbox' ) . ' <span class="required">*</span></label> ' .
|
87 |
| - '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" aria-required="true" required /></p>', |
| 87 | + '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" required /></p>', |
88 | 88 | 'email' => '<p class="comment-form-email"><label for="email">' . esc_html__( 'Email', 'bigbox' ) . ' <span class="required">*</span></label> ' .
|
89 |
| - '<input id="email" name="email" type="email" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" aria-required="true" required /></p>', |
| 89 | + '<input id="email" name="email" type="email" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" required /></p>', |
90 | 90 | ],
|
91 | 91 | 'label_submit' => esc_html__( 'Submit Review', 'bigbox' ),
|
92 | 92 | 'logged_in_as' => '',
|
|
101 | 101 | }
|
102 | 102 |
|
103 | 103 | if ( get_option( 'woocommerce_enable_review_rating' ) === 'yes' ) {
|
104 |
| - $comment_form['comment_field'] = '<div class="comment-form-rating"><label for="rating">' . esc_html__( 'Your rating', 'bigbox' ) . '</label><select name="rating" id="rating" aria-required="true" required> |
| 104 | + $comment_form['comment_field'] = '<div class="comment-form-rating"><label for="rating">' . esc_html__( 'Your rating', 'bigbox' ) . '</label><select name="rating" id="rating" required> |
105 | 105 | <option value="">' . esc_html__( 'Rate…', 'bigbox' ) . '</option>
|
106 | 106 | <option value="5">' . esc_html__( 'Perfect', 'bigbox' ) . '</option>
|
107 | 107 | <option value="4">' . esc_html__( 'Good', 'bigbox' ) . '</option>
|
|
111 | 111 | </select></div>';
|
112 | 112 | }
|
113 | 113 |
|
114 |
| - $comment_form['comment_field'] .= '<p class="comment-form-comment"><label for="comment">' . esc_html__( 'Your review', 'bigbox' ) . ' <span class="required">*</span></label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true" required></textarea></p>'; |
| 114 | + $comment_form['comment_field'] .= '<p class="comment-form-comment"><label for="comment">' . esc_html__( 'Your review', 'bigbox' ) . ' <span class="required">*</span></label><textarea id="comment" name="comment" cols="45" rows="8" required></textarea></p>'; |
115 | 115 |
|
116 | 116 | comment_form( apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form ) );
|
117 | 117 | ?>
|
|
0 commit comments