Index: trunk/extensions/AbuseFilter/AbuseFilter.hooks.php |
— | — | @@ -29,14 +29,11 @@ |
30 | 30 | $oldtext = ''; |
31 | 31 | |
32 | 32 | if ( $editor->mArticle->exists() ) { |
33 | | - // Fetch text which might be an old revision |
34 | 33 | $oldtext = $editor->mArticle->getContent(); |
35 | 34 | } |
36 | 35 | |
37 | | - if ( $editor->mArticle->isCurrent() && strcmp( $oldtext, $text ) == 0) { |
38 | | - // Do not trigger if used text was the latest in the database and user |
39 | | - // submitted text does not introduce any difference. |
40 | | - // See bugs 19267 & 31656. |
| 36 | + if ( strcmp( $oldtext, $text ) == 0 ) { |
| 37 | + // Don't trigger for null edits. |
41 | 38 | return true; |
42 | 39 | } |
43 | 40 | |