=== Baidu TextCensor For Comments ===
Contributors: shenyanzhi
Donate link: https://qq52o.me/sponsor.html
Tags: baidu,textcensor,comments,评论过滤
Requires at least: 5.6
Tested up to: 7.0
Requires PHP: 7.0
Stable tag: 1.2.0
License: Apache 2.0
License URI: http://www.apache.org/licenses/LICENSE-2.0.html

基于百度文本内容审核技术来提供 WordPress 评论内容审核

== Description ==

基于百度文本内容审核技术来提供 WordPress 评论内容审核，对网站用户的评论信息检测，一旦发现用户提交恶意垃圾内容，可以做到文本的自动审核与实时过滤。

## 依赖第三方服务

- 依赖百度 AI 文本审核技术：https://ai.baidu.com/tech/textcensoring
- 使用说明：https://ai.baidu.com/ai-doc/ANTIPORN/Vk3h6xaga
- 即在 WordPress 中有新的评论时，将会调用百度文本审核接口进行验证，验证结果分为 4 种：1. 合规、2. 不合规、3. 疑似、4. 审核失败
- 不改变原有的讨论规则，不合规时提示重新评论；疑似和审核失败时写数据库，人工二次审核

## 主要功能

1. 基于百度 Api，一站式检测文本中夹杂的色情、推广、辱骂、违禁、涉政、灌水等垃圾内容，净化网络环境；
2. 用户可以在平台上自助选择审核维度、审核标签，审核松紧度、自定义文本黑白名单，让文本按照勾选的维度、松紧度进行审核。
3. 插件更多详细介绍和安装：[https://github.com/sy-records/wp-baidu-textcensor](https://github.com/sy-records/wp-baidu-textcensor)

## 作者博客

[沈唁志](https://qq52o.me "沈唁志")

## 相关插件

**文章内容审核**：[GitHub](https://github.com/sy-records/textcensor-for-articles)，[WordPress Plugins](https://wordpress.org/plugins/textcensor-for-articles)

== Installation ==

1. 把 wp-baidu-textcensor 文件夹上传到 /wp-content/plugins/ 目录下
2. 在后台插件列表中激活 wp-baidu-textcensor
3. 在“百度内容审核设置”菜单中输入百度文本内容审核相关的 AppID、API Key、Secret Key 信息
4. 开始使用吧~

== Screenshots ==

1. 插件配置页面

== Changelog ==

= 1.2.0 =

- 增加 Redis 缓存，限制 IP 请求频率

= 1.1.2 =

- 修复 preprocess_comment 钩子执行顺序问题

= 1.1.1 =

- 增加`userId`和`userIp`参数，可在内容审核平台-数据统计-[用户风险统计](https://ai.baidu.com/censoring#/overview/userrisk)使用

= 1.1.0 =

- 支持 WordPress 6.3

= 1.0.8 =

- 支持 WordPress 5.8
- 支持验证登录用户角色的评论

= 1.0.7 =

- 修改 wp_die 的响应状态码

= 1.0.6 =

- 支持 WordPress 5.6

= 1.0.5 =

- 更新 Tested up to 版本号

= 1.0.4 =

- 修复 add_submenu_page 参数错误提示

= 1.0.3 =

- 更新 readme 为 markdown 格式
- 更新插件名称为 Baidu TextCensor For Comments
- 修复停用插件删除配置

= 1.0.2 =

- Optimization baiduWpRequest method

= 1.0.1 =

- Updated readme.txt
- Updated pre_comment_approved filter hook

= 1.0.0 =

- First version
