Changeset 43449
- Timestamp:
- 07/16/2018 12:06:02 PM (7 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-includes/comment-template.php
r43306 r43449 2197 2197 $html_req = ( $req ? " required='required'" : '' ); 2198 2198 $html5 = 'html5' === $args['format']; 2199 $consent = empty( $commenter['comment_author_email'] ) ? '' : ' checked="checked"';2200 2199 $fields = array( 2201 2200 'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' . … … 2205 2204 'url' => '<p class="comment-form-url"><label for="url">' . __( 'Website' ) . '</label> ' . 2206 2205 '<input id="url" name="url" ' . ( $html5 ? 'type="url"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" maxlength="200" /></p>', 2207 'cookies' => '<p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"' . $consent . ' />' .2208 '<label for="wp-comment-cookies-consent">' . __( 'Save my name, email, and website in this browser for the next time I comment.' ) . '</label></p>',2209 2206 ); 2210 2207 2211 $required_text = sprintf( ' ' . __('Required fields are marked %s'), '<span class="required">*</span>' ); 2208 if ( has_action( 'set_comment_cookies', 'wp_set_comment_cookies' ) ) { 2209 $consent = empty( $commenter['comment_author_email'] ) ? '' : ' checked="checked"'; 2210 $fields['cookies'] = '<p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"' . $consent . ' />' . 2211 '<label for="wp-comment-cookies-consent">' . __( 'Save my name, email, and website in this browser for the next time I comment.' ) . '</label></p>'; 2212 } 2213 2214 $required_text = sprintf( ' ' . __( 'Required fields are marked %s' ), '<span class="required">*</span>' ); 2212 2215 2213 2216 /**
Note: See TracChangeset
for help on using the changeset viewer.