WordPress GIt 主题 Mix content 的问题

  • fennng 
换了 GIT 主题后, 我发现能发评论的地方都会显示 
Your connection to this site is not fully secure

打开 Inspector 的 console 可以看到

​原因是因为GIT模版还在用一个LEGACY的API, 好吧, 9年前就应该换了.
将Comments.php 里面的get_option('siteurl'); ?>/wp-comments-post.php 改成
site_url( '/wp-comments-post.php' ); ?>

问题解决.

标签:

发表评论

您的电子邮箱地址不会被公开。