Manual:$wgFilterCallback/zh
From Linux Web Expert
File:OOjs UI icon alert-destructive.svg | <translate> This feature was removed completely in version <tvar name=ver>1.20.0</tvar>.</translate> |
<translate> Access</translate>: $wgFilterCallback | |
---|---|
如果此函数返回true,则与$wgSpamRegex 类似 |
|
<translate> Introduced in version:</translate> | 1.3.0 (r4130) |
<translate> Deprecated in version:</translate> | 1.17.0 |
<translate> Removed in version:</translate> | 1.20.0 (Gerrit change 36733; git #ba5ee43a) |
<translate> Allowed values:</translate> | <translate> Unspecified</translate> |
<translate> Default value:</translate> | false |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
细节
与$wgSpamRegex 相似,您可以获取一个函数来完成工作。该函数将被赋予以下参数:
- 对其进行编辑的文章的标题对象
- 在textarea(wpTextbox1)中提交的文本
- 段号。
返回值应为布尔值,指示编辑是否与某些恶意匹配:
- true: 阻止它
- false: 让它通过
Categories:
- MediaWiki configuration settings/zh
- MediaWiki configuration settings introduced in version 1.3.0/zh
- MediaWiki configuration settings deprecated in version 1.17.0/zh
- MediaWiki configuration settings removed in version 1.20.0/zh
- Pages with broken file links
- MediaWiki deprecated or obsolete features/zh
- Permission variables/zh