diff --git a/RELEASE-NOTES-1.35 b/RELEASE-NOTES-1.35 index ee516266fb8..9eefbdbbd35 100644 --- a/RELEASE-NOTES-1.35 +++ b/RELEASE-NOTES-1.35 @@ -447,6 +447,8 @@ because of Phabricator reports. - mTables * The ArticleEditUpdatesDeleteFromRecentchanges hook has been deprecated. Please use the RecentChange_save hook or similar instead. +* The ArticleEditUpdates hook has been deprecated. Please + use the RevisionDataUpdates hook or similar instead. * … === Other changes in 1.35 === diff --git a/docs/hooks.txt b/docs/hooks.txt index f73991c806f..2bc7e619dee 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -641,8 +641,8 @@ was changed. &$wikiPage: WikiPage (object) of the user talk page $recipient: User (object) who's talk page was edited -'ArticleEditUpdates': When edit updates (mainly link tracking) are made when an -article has been changed. +'ArticleEditUpdates': DEPRECATED since 1.35, use RevisionDataUpdates instead. +When edit updates (mainly link tracking) are made when an article has been changed. &$wikiPage: the WikiPage (object) &$editInfo: data holder that includes the parser output ($editInfo->output) for that page after the change diff --git a/includes/Storage/DerivedPageDataUpdater.php b/includes/Storage/DerivedPageDataUpdater.php index eae750f4558..b08b0c0deef 100644 --- a/includes/Storage/DerivedPageDataUpdater.php +++ b/includes/Storage/DerivedPageDataUpdater.php @@ -1485,7 +1485,9 @@ class DerivedPageDataUpdater implements IDBAccessObject, LoggerAwareInterface { // this hook whenever possible in order to avoid unnecessary additional parses. $editInfo = $this->getPreparedEdit(); Hooks::run( 'ArticleEditUpdates', - [ &$wikiPage, &$editInfo, $this->options['changed'] ] ); + [ &$wikiPage, &$editInfo, $this->options['changed'] ], + '1.35' + ); // TODO: replace legacy hook! Use a listener on PageEventEmitter instead! if ( Hooks::run( 'ArticleEditUpdatesDeleteFromRecentchanges', [ &$wikiPage ], '1.35' ) ) {