mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-09-24 02:38:16 +00:00
Allow filtering links and html for page creations
Right now it's impossible to filter added_links etc. for page creations. (Only slightly tested) Change-Id: Iee07fc8bfe41e78abb73d8ae969aa1e4d97339bc
This commit is contained in:
parent
51b19d35f3
commit
89726ae861
|
@ -1956,7 +1956,7 @@ class AbuseFilter {
|
|||
$vars = new AbuseFilterVariableHolder;
|
||||
|
||||
// NOTE: $page may end up remaining null, e.g. if $title points to a special page.
|
||||
if ( !$page && $title instanceof Title && $title->canExist() && $title->exists() ) {
|
||||
if ( !$page && $title instanceof Title && $title->canExist() ) {
|
||||
$page = WikiPage::factory( $title );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue