Hard deprecate OutputPageMakeCategoryLinksHook

The hook OutputPageMakeCategoryLinks was only used by extension
CategoryTree:
https://codesearch.wmcloud.org/search/?q=OutputPageMakeCategoryLinks

CategoryTree switched to the new hook OutputPageRenderCategoryLink.

Depends-On: Ic86f210474cbc0e2dcebf664cf2309a4a4408f60
Change-Id: I8ea56f2d111aeccee158c40b8379383e92154d8a
This commit is contained in:
Fomafix 2024-08-14 19:45:03 +00:00 committed by C. Scott Ananian
parent b43860cc09
commit b8a1014679
3 changed files with 5 additions and 2 deletions

View file

@ -122,7 +122,7 @@ For notes on 1.42.x and older releases, see HISTORY.
* The AuthManagerFilterProviders hook was added.
* The AuthManagerVerifyAuthentication hook was added.
* The OutputPageRenderCategoryLink hook was added, as a replacement for the
older OutputPageMakeCategoryLinks hook.
deprecated OutputPageMakeCategoryLinks hook.
* …
=== External library changes in 1.43 ===
@ -659,6 +659,8 @@ because of Phabricator reports.
* ImageGalleryBase::setWidths() and ::setHeights() will now emit a deprecation
warning if they are called without ImageGalleryBase::setParser() having been
called. Please set the parser appropriately when using the image gallery.
* The hook OutputPageMakeCategoryLinks is deprecated. Use the new hook
OutputPageRenderCategoryLink instead.
* …
=== Other changes in 1.43 ===

View file

@ -46,6 +46,7 @@ class DeprecatedHooks {
'LocalFile::getHistory' => [ 'deprecatedVersion' => '1.37' ],
'MagicWordwgVariableIDs' => [ 'deprecatedVersion' => '1.35', 'silent' => true ],
'MessageCache::get' => [ 'deprecatedVersion' => '1.41' ],
'OutputPageMakeCategoryLinks' => [ 'deprecatedVersion' => '1.43' ],
'PageContentSave' => [ 'deprecatedVersion' => '1.35', 'silent' => true ],
'PrefixSearchBackend' => [ 'deprecatedVersion' => '1.27' ],
'ProtectionForm::buildForm' => [ 'deprecatedVersion' => '1.36', 'silent' => true ],

View file

@ -8,7 +8,7 @@ use MediaWiki\Output\OutputPage;
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "OutputPageMakeCategoryLinks" to register handlers implementing this interface.
*
* @stable to implement
* @deprecated since 1.43, use OutputPageRenderCategoryLinkHook instead.
* @ingroup Hooks
*/
interface OutputPageMakeCategoryLinksHook {