Changeset 43128 for branches/4.9
- Timestamp:
- 05/02/2018 10:12:28 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
r43127 r43128 2195 2195 $html_req = ( $req ? " required='required'" : '' ); 2196 2196 $html5 = 'html5' === $args['format']; 2197 $consent = empty( $commenter['comment_author_email'] ) ? '' : ' checked="checked"'; 2197 2198 $fields = array( 2198 2199 'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' . … … 2203 2204 '<input id="url" name="url" ' . ( $html5 ? 'type="url"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" maxlength="200" /></p>', 2204 2205 'cookies' => '<p class="comment-form-cookies-consent"><label for="wp-comment-cookies-consent">' . 2205 '<input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes" />' .2206 '<input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"' . $consent . ' />' . 2206 2207 __( 'Save my name, email, and site URL in my browser for next time I post a comment.' ) . '</label></p>', 2207 2208 );
Note: See TracChangeset
for help on using the changeset viewer.