换了 GIT 主题后, 我发现能发评论的地方都会显示
Your connection to this site is not fully secure
![](https://www.dengnz.com/wp-content/uploads/2018/07/image-20.png)
打开 Inspector 的 console 可以看到
![](https://www.dengnz.com/wp-content/uploads/2018/07/image-22.png)
原因是因为GIT模版还在用一个LEGACY的API, 好吧, 9年前就应该换了.
将Comments.php 里面的get_option('siteurl'); ?>/wp-comments-post.php 改成
site_url( '/wp-comments-post.php' ); ?>
![](https://www.dengnz.com/wp-content/uploads/2018/07/image-21.png)
问题解决.