Changeset 43370
- Timestamp:
- 06/18/2018 03:01:27 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r43304 r43370 2263 2263 $html_req = ( $req ? " required='required'" : '' ); 2264 2264 $html5 = 'html5' === $args['format']; 2265 $consent = empty( $commenter['comment_author_email'] ) ? '' : ' checked="checked"';2266 2265 $fields = array( 2267 2266 'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' . … … 2271 2270 'url' => '<p class="comment-form-url"><label for="url">' . __( 'Website' ) . '</label> ' . 2272 2271 '<input id="url" name="url" ' . ( $html5 ? 'type="url"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" maxlength="200" /></p>', 2273 'cookies' => '<p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"' . $consent . ' />' .2274 '<label for="wp-comment-cookies-consent">' . __( 'Save my name, email, and website in this browser for the next time I comment.' ) . '</label></p>',2275 2272 ); 2273 2274 if ( has_action( 'set_comment_cookies', 'wp_set_comment_cookies' ) ) { 2275 $consent = empty( $commenter['comment_author_email'] ) ? '' : ' checked="checked"'; 2276 $fields['cookies'] = '<p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"' . $consent . ' />' . 2277 '<label for="wp-comment-cookies-consent">' . __( 'Save my name, email, and website in this browser for the next time I comment.' ) . '</label></p>'; 2278 } 2276 2279 2277 2280 $required_text = sprintf( ' ' . __( 'Required fields are marked %s' ), '<span class="required">*</span>' );
Note: See TracChangeset
for help on using the changeset viewer.