Page MenuHomePhabricator

Replace usages of Linker::link() and Linker::linkKnown() in extension CentralAuth
Closed, ResolvedPublic

Description

Linker::link() and Linker::linkKnown() functions are deprecated as of MediaWiki 1.28, and the new LinkRenderer is preferred instead.
https://doc.wikimedia.org/mediawiki-core/master/php/classLinker.html

./CentralAuth/includes/CentralAuthHooks.php:			$link = Linker::link( $title, htmlspecialchars( $params[0] ) );
./CentralAuth/includes/CentralAuthHooks.php:			$new = Linker::link(
./CentralAuth/includes/CentralAuthHooks.php:			$old = Linker::link(

Event Timeline

Palak199 added a subscriber: Palak199.

I made this correction in PageForms. I would like to do it in this extension too.

Change 677804 had a related patch set uploaded (by Palak199; author: Palak199):

[mediawiki/extensions/CentralAuth@master] Replace:: the link function with linkRenderer

https://gerrit.wikimedia.org/r/677804

Change 677804 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@master] Replace the link function with linkRenderer

https://gerrit.wikimedia.org/r/677804