Changeset 43571 for trunk/src/wp-includes/comment-template.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r43531 r43571 1153 1153 if ( true !== $deprecated_echo ) { 1154 1154 _deprecated_argument( 1155 __FUNCTION__, '2.5.0', 1155 __FUNCTION__, 1156 '2.5.0', 1156 1157 /* translators: %s: get_trackback_url() */ 1157 1158 sprintf( … … 1677 1678 } else { 1678 1679 $data_attributes = array( 1679 'commentid' 1680 'postid' 1681 'belowelement' 1682 'respondelement' 1680 'commentid' => $comment->comment_ID, 1681 'postid' => $post->ID, 1682 'belowelement' => $args['add_below'] . '-' . $comment->comment_ID, 1683 'respondelement' => $args['respond_id'], 1683 1684 ); 1684 1685 … … 1686 1687 1687 1688 foreach ( $data_attributes as $name => $value ) { 1688 $data_attribute_string .= " data-${name}=\"" . esc_attr( $value ) . "\"";1689 $data_attribute_string .= " data-${name}=\"" . esc_attr( $value ) . '"'; 1689 1690 } 1690 1691 … … 1693 1694 $link = sprintf( 1694 1695 "<a rel='nofollow' class='comment-reply-link' href='%s' %s aria-label='%s'>%s</a>", 1695 esc_url( add_query_arg( 'replytocom', $comment->comment_ID ) ) . "#". $args['respond_id'],1696 esc_url( add_query_arg( 'replytocom', $comment->comment_ID ) ) . '#' . $args['respond_id'], 1696 1697 $data_attribute_string, 1697 1698 esc_attr( sprintf( $args['reply_to_text'], $comment->comment_author ) ), … … 1780 1781 $onclick = sprintf( 1781 1782 'return addComment.moveForm( "%1$s-%2$s", "0", "%3$s", "%2$s" )', 1782 $args['add_below'], $post->ID, $args['respond_id'] 1783 $args['add_below'], 1784 $post->ID, 1785 $args['respond_id'] 1783 1786 ); 1784 1787 … … 2264 2267 $html5 = 'html5' === $args['format']; 2265 2268 $fields = array( 2266 'author' 2269 'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' . 2267 2270 '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" maxlength="245"' . $html_req . ' /></p>', 2268 'email' 2271 'email' => '<p class="comment-form-email"><label for="email">' . __( 'Email' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' . 2269 2272 '<input id="email" name="email" ' . ( $html5 ? 'type="email"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" maxlength="100" aria-describedby="email-notes"' . $html_req . ' /></p>', 2270 'url' 2273 'url' => '<p class="comment-form-url"><label for="url">' . __( 'Website' ) . '</label> ' . 2271 2274 '<input id="url" name="url" ' . ( $html5 ? 'type="url"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" maxlength="200" /></p>', 2272 2275 ); … … 2377 2380 do_action( 'comment_form_must_log_in_after' ); 2378 2381 else : 2379 ?>2382 ?> 2380 2383 <form action="<?php echo esc_url( $args['action'] ); ?>" method="post" id="<?php echo esc_attr( $args['id_form'] ); ?>" class="<?php echo esc_attr( $args['class_form'] ); ?>"<?php echo $html5 ? ' novalidate' : ''; ?>> 2381 2384 <?php
Note: See TracChangeset
for help on using the changeset viewer.