aboutsummaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
authorRoman Stolar <roman.stolar@speedandfunction.com>2021-07-19 15:51:06 +0300
committerPetr Pchelko <ppchelko@wikimedia.org>2021-07-21 17:36:24 -0700
commita9e35df62ab7800b8833dcb0ebcd88b616e6521c (patch)
treef482ab5258c3845c9bf56559b273d32d041c147b /includes
parentbc76602493ce814c8ccf3cfac97f4b237f9aff96 (diff)
downloadmediawikicore-a9e35df62ab7800b8833dcb0ebcd88b616e6521c.tar.gz
mediawikicore-a9e35df62ab7800b8833dcb0ebcd88b616e6521c.zip
Remove deprecated hook 'SecondaryDataUpdate'.
Bug: T232878 Change-Id: I4a795436e560a19c8918177edeb3c792eeb9dd72
Diffstat (limited to 'includes')
-rw-r--r--includes/HookContainer/DeprecatedHooks.php1
-rw-r--r--includes/HookContainer/HookRunner.php10
-rw-r--r--includes/content/AbstractContent.php2
-rw-r--r--includes/content/Hook/SecondaryDataUpdatesHook.php34
4 files changed, 0 insertions, 47 deletions
diff --git a/includes/HookContainer/DeprecatedHooks.php b/includes/HookContainer/DeprecatedHooks.php
index 7fb56778a50d..8f3645f0af99 100644
--- a/includes/HookContainer/DeprecatedHooks.php
+++ b/includes/HookContainer/DeprecatedHooks.php
@@ -52,7 +52,6 @@ class DeprecatedHooks {
'ProtectionForm::buildForm' => [ 'deprecatedVersion' => '1.36', 'silent' => true ],
'ResourceLoaderTestModules' => [ 'deprecatedVersion' => '1.33' ],
'RollbackComplete' => [ 'deprecatedVersion' => '1.36', 'silent' => true ],
- 'SecondaryDataUpdates' => [ 'deprecatedVersion' => '1.32', 'silent' => true ],
'SpecialMuteSubmit' => [ 'deprecatedVersion' => '1.35', 'silent' => true ],
'SkinTemplateOutputPageBeforeExec' => [ 'deprecatedVersion' => '1.35' ],
'SkinTemplateToolboxEnd' => [ 'deprecatedVersion' => '1.35' ],
diff --git a/includes/HookContainer/HookRunner.php b/includes/HookContainer/HookRunner.php
index ee7e00195998..36dfdac51219 100644
--- a/includes/HookContainer/HookRunner.php
+++ b/includes/HookContainer/HookRunner.php
@@ -66,7 +66,6 @@ class HookRunner implements
\MediaWiki\Content\Hook\PageContentLanguageHook,
\MediaWiki\Content\Hook\PlaceNewSectionHook,
\MediaWiki\Content\Hook\SearchDataForIndexHook,
- \MediaWiki\Content\Hook\SecondaryDataUpdatesHook,
\MediaWiki\Diff\Hook\AbortDiffCacheHook,
\MediaWiki\Diff\Hook\ArticleContentOnDiffHook,
\MediaWiki\Diff\Hook\DifferenceEngineAfterLoadNewTextHook,
@@ -3260,15 +3259,6 @@ class HookRunner implements
);
}
- public function onSecondaryDataUpdates( $title, $oldContent, $recursive,
- $parserOutput, &$updates
- ) {
- return $this->container->run(
- 'SecondaryDataUpdates',
- [ $title, $oldContent, $recursive, $parserOutput, &$updates ]
- );
- }
-
public function onSecuritySensitiveOperationStatus( &$status, $operation,
$session, $timeSinceAuth
) {
diff --git a/includes/content/AbstractContent.php b/includes/content/AbstractContent.php
index d94ebcae5093..51529155a7d4 100644
--- a/includes/content/AbstractContent.php
+++ b/includes/content/AbstractContent.php
@@ -297,8 +297,6 @@ abstract class AbstractContent implements Content {
new LinksUpdate( $title, $parserOutput, $recursive )
];
- Hooks::runner()->onSecondaryDataUpdates( $title, $old, $recursive, $parserOutput, $updates );
-
return $updates;
}
diff --git a/includes/content/Hook/SecondaryDataUpdatesHook.php b/includes/content/Hook/SecondaryDataUpdatesHook.php
deleted file mode 100644
index f81ac53e7543..000000000000
--- a/includes/content/Hook/SecondaryDataUpdatesHook.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-
-namespace MediaWiki\Content\Hook;
-
-use Content;
-use DataUpdate;
-use ParserOutput;
-use Title;
-
-/**
- * This is a hook handler interface, see docs/Hooks.md.
- * Use the hook name "SecondaryDataUpdates" to register handlers implementing this interface.
- *
- * @deprecated since 1.32 Use RevisionDataUpdates or override
- * ContentHandler::getSecondaryDataUpdates instead.
- * @ingroup Hooks
- */
-interface SecondaryDataUpdatesHook {
- /**
- * Use this hook to modify the list of DataUpdates to perform when page content is modified.
- *
- * @param Title $title Title of the page that is being edited
- * @param Content $oldContent Page content before the edit
- * @param bool $recursive Whether DataUpdates should trigger recursive updates
- * (relevant mostly for LinksUpdate)
- * @param ParserOutput $parserOutput Rendered version of the page after the edit
- * @param DataUpdate[] &$updates List of DataUpdate objects, to be modified or replaced by
- * the hook handler
- * @return bool|void True or no return value to continue or false to abort
- */
- public function onSecondaryDataUpdates( $title, $oldContent, $recursive,
- $parserOutput, &$updates
- );
-}