Remove hard deprecated EditPage spam regex methods
::matchSpamRegex and ::matchSummarySpamRegex, hard deprecated in favor of the SpamChecker service Change-Id: I90dca38abf1ef3411dd06138fdec198724de31fe
This commit is contained in:
parent
e623a91aab
commit
d24f7ad8be
2 changed files with 2 additions and 28 deletions
|
|
@ -288,6 +288,8 @@ because of Phabricator reports.
|
|||
- ::getSummaryInputWidget
|
||||
- ::noSuchSectionPage
|
||||
- ::initialiseForm
|
||||
* EditPage::matchSpamRegex and ::matchSummarySpamRegex, deprecated in 1.35,
|
||||
were removed. Use the SpamChecker service instead.
|
||||
* The global function `wfWaitForSlaves`, deprecated in 1.27 and hard-deprecated
|
||||
in 1.35, has been removed. Use LBFactory::waitForReplication() instead.
|
||||
* Calling Action::factory() with null as the first parameter, rather than a
|
||||
|
|
|
|||
|
|
@ -2626,34 +2626,6 @@ class EditPage implements IEditObject {
|
|||
return $this->mExpectedParentRevision;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check given input text against $wgSpamRegex, and return the text of the first match.
|
||||
*
|
||||
* @deprecated since 1.35, use the new SpamChecker service
|
||||
*
|
||||
* @param string $text
|
||||
*
|
||||
* @return string|bool Matching string or false
|
||||
*/
|
||||
public static function matchSpamRegex( $text ) {
|
||||
wfDeprecated( __METHOD__, '1.35' );
|
||||
return MediaWikiServices::getInstance()->getSpamChecker()->checkContent( $text );
|
||||
}
|
||||
|
||||
/**
|
||||
* Check given input text against $wgSummarySpamRegex, and return the text of the first match.
|
||||
*
|
||||
* @deprecated since 1.35, use the new SpamChecker service
|
||||
*
|
||||
* @param string $text
|
||||
*
|
||||
* @return string|bool Matching string or false
|
||||
*/
|
||||
public static function matchSummarySpamRegex( $text ) {
|
||||
wfDeprecated( __METHOD__, '1.35' );
|
||||
return MediaWikiServices::getInstance()->getSpamChecker()->checkSummary( $text );
|
||||
}
|
||||
|
||||
public function setHeaders() {
|
||||
$out = $this->context->getOutput();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue