Browse Source

comments隐藏邮箱

liuyuqi-dellpc 5 years ago
parent
commit
73c0dd39b9
2 changed files with 5 additions and 6 deletions
  1. 3 4
      comments.php
  2. 2 2
      header.php

+ 3 - 4
comments.php

@@ -119,10 +119,9 @@ if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_
 	<div id="pen_respond_wrapper" class="<?php pen_class_animation( 'comments' ); /* phpcs:ignore */ ?>">
 <?php
 $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>',
+	'author' => '<p class="comment-form-author">' . '<label for="author">姓名/联系方式:</label> ' . ( $req ? '<span class="required">*</span>' : '' ) .
+	'<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="50"' . $aria_req . ' /></p>',
+	'email'  => '',
 	'url'    => "",
 	);
 $defaults=array(

+ 2 - 2
header.php

@@ -42,9 +42,9 @@ ob_start();
                r
 -->
 <!doctype html>
-<html <?php language_attributes(); ?> class="no-js">
+<html class="no-js">
 	<head>
-		<meta charset="<?php bloginfo( 'charset' ); ?>">
+		<meta charset="utf-8">
 		<meta name="viewport" content="width=device-width, initial-scale=1">
 		<meta name="author" content="liuyuqi.gov@msn.cn">
 		<meta name="keywords" content="天问博客,大数据,开发架构,随笔,行业分析,芝舟科技"/>