去除Huanjue2.22首页最新评论显示头像

幻觉模版使用者反馈加载头像会使首页变慢,现在写个去除的方法。

找到siedebarh.php将

  • 最新评论

  • 替换成sidebar.php 里头的最新评论代码

  • 最新评论

    ') { global $wpdb; $sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type, SUBSTRING(comment_content,1,$src_length) AS com_excerpt FROM $wpdb->comments LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID = $wpdb->posts.ID) WHERE comment_approved = '1' AND comment_type = '' AND post_password = '' AND user_id <> '1' ORDER BY comment_date_gmt DESC LIMIT $src_count"; $comments = $wpdb->get_results($sql); $output .= "\n"; $output .= $post_HTML; echo $output; } ?>
  • 赞 (0)
    分享到:更多 ()