Changeset 14093
- Timestamp:
- 04/15/2010 04:25:08 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/comment-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment-template.php
r14092 r14093 1494 1494 $req = get_option( 'require_name_email' ); 1495 1495 $aria_req = ( $req ? " aria-required='true'" : '' ); 1496 $defaults = array( 'fields' => apply_filters( 'comment_form_default_fields', array( 'author' => '<p class="comment-form-author">' . 1497 '<label for="author">' . __( 'Name' ) . '</label> ' . 1498 ( $req ? '<span class="required">*</span>' : '' ) . 1499 '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" tabindex="1"' . $aria_req . ' /></p>', 1500 'email' => '<p class="comment-form-email">' . 1501 '<label for="email">' . __( 'Email' ) . '</label> ' . 1502 ( $req ? '<span class="required">*</span>' : '' ) . 1503 '<input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" tabindex="2"' . $aria_req . ' /></p>', 1504 'url' => '<p class="comment-form-url">' . 1505 '<label for="url">' . __( 'Website' ) . '</label>' . 1506 '<input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" tabindex="3" /></p>' ) ), 1507 'comment_field' => '<p class="comment-form-comment">' . 1508 '<label for="comment">' . __( 'Comment' ) . '</label>' . 1509 '<textarea id="comment" name="comment" cols="45" rows="8" tabindex="4" aria-required="true"></textarea>' . 1510 '</p>', 1511 'must_log_in' => '<p class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', 1512 'logged_in_as' => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%s">%s</a>. <a href="%s" title="Log out of this account">Log out?</a></p>' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ), 1513 'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email is <em>never</em> published nor shared.' ) . ( $req ? __( ' Required fields are marked <span class="required">*</span>' ) : '' ) . '</p>', 1514 'comment_notes_after' => '<dl class="form-allowed-tags"><dt>' . __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:' ) . '</dt> <dd><code>' . allowed_tags() . '</code></dd></dl>', 1515 'id_form' => 'commentform', 1516 'id_submit' => 'submit', 1517 'title_reply' => __( 'Leave a Reply' ), 1518 'title_reply_to' => __( 'Leave a Reply to %s' ), 1519 'cancel_reply_link' => __( 'Cancel reply' ), 1520 'label_submit' => __( 'Post Comment' ), 1521 ); 1496 $fields = array( 1497 'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . 1498 '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" tabindex="1"' . $aria_req . ' /></p>', 1499 'email' => '<p class="comment-form-email"><label for="email">' . __( 'Email' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . 1500 '<input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" tabindex="2"' . $aria_req . ' /></p>', 1501 'url' => '<p class="comment-form-url"><label for="url">' . __( 'Website' ) . '</label>' . 1502 '<input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" tabindex="3" /></p>', 1503 ); 1504 1505 $defaults = array( 1506 'fields' => apply_filters( 'comment_form_default_fields', $fields ), 1507 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . __( 'Comment' ) . '</label><textarea id="comment" name="comment" cols="45" rows="8" tabindex="4" aria-required="true"></textarea></p>', 1508 'must_log_in' => '<p class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', 1509 'logged_in_as' => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a></p>' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ), 1510 'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email is <em>never</em> published nor shared.' ) . ( $req ? __( ' Required fields are marked <span class="required">*</span>' ) : '' ) . '</p>', 1511 'comment_notes_after' => '<dl class="form-allowed-tags"><dt>' . __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:' ) . '</dt> <dd><code>' . allowed_tags() . '</code></dd></dl>', 1512 'id_form' => 'commentform', 1513 'id_submit' => 'submit', 1514 'title_reply' => __( 'Leave a Reply' ), 1515 'title_reply_to' => __( 'Leave a Reply to %s' ), 1516 'cancel_reply_link' => __( 'Cancel reply' ), 1517 'label_submit' => __( 'Post Comment' ), 1518 ); 1519 1522 1520 $args = wp_parse_args( $args, apply_filters( 'comment_form_defaults', $defaults ) ); 1523 1521
Note: See TracChangeset
for help on using the changeset viewer.