Browse Source

隐藏url区

liuyuqi-dellpc 5 years ago
parent
commit
1f1bc79354
1 changed files with 11 additions and 1 deletions
  1. 11 1
      comments.php

+ 11 - 1
comments.php

@@ -118,7 +118,17 @@ if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_
 ?>
 ?>
 	<div id="pen_respond_wrapper" class="<?php pen_class_animation( 'comments' ); /* phpcs:ignore */ ?>">
 	<div id="pen_respond_wrapper" class="<?php pen_class_animation( 'comments' ); /* phpcs:ignore */ ?>">
 <?php
 <?php
-comment_form();
+$fields=array(
+	'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) .
+	'<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p>',
+	'email'  => '<p class="comment-form-email"><label for="email">' . __( 'Email' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) .
+	'<input id="email" name="email" type="text" value="' . esc_attr(  $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' /></p>',
+	'url'    => "",
+	);
+$defaults=array(
+	'fields'=> apply_filters( 'comment_form_default_fields', $fields ),
+);
+comment_form($defaults);
 ?>
 ?>
 	</div>
 	</div>
 </div><!-- #comments -->
 </div><!-- #comments -->