Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

文章评论前端不显示Akismet插件的隐私声明 #341

Closed
n0099 opened this issue Mar 3, 2021 · 2 comments · Fixed by #346
Closed

文章评论前端不显示Akismet插件的隐私声明 #341

n0099 opened this issue Mar 3, 2021 · 2 comments · Fixed by #346

Comments

@n0099
Copy link
Contributor

n0099 commented Mar 3, 2021

问题描述
https://blog.akismet.com/2018/06/07/customisation-options-for-the-akismet-front-end-privacy-notice/

环境信息
PHP 版本:7.4.12
Kratos 版本:3.2.7
WordPress 版本:5.6.2
User Agent 信息:Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.7 Safari/537.36

复现步奏

  • 启用Akismet插件并在wp-admin/options-general.php?page=akismet-key-config中启动在您的评论表单下展示隐私通知。
@n0099
Copy link
Contributor Author

n0099 commented Mar 3, 2021

akismet在https://plugins.trac.wordpress.org/browser/akismet/trunk/class.akismet.php?rev=2483638#L62 注册的是comment_form_after hook,其会被wp-includes/comment-template.php执行

@n0099
Copy link
Contributor Author

n0099 commented Mar 8, 2021

add <?php do_action('comment_form_after');?> after
https://github.com/vtrois/kratos/blob/e22d746a4176cf4a4feea8006dc77acf21c7ca06/comments.php#L76

seatonjiang pushed a commit that referenced this issue Mar 11, 2021
* fix: action comment_form_after should be called #341

* fix: add custom_upload_perfilter on filter wp_handle_sideload_prefilter #345
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant