From 85f9456b2d5ba36f9244982b9654da70c66d7d92 Mon Sep 17 00:00:00 2001 From: Reedy Date: Sat, 2 Jan 2016 22:41:37 +0000 Subject: [PATCH] Linker::makeKnownLinkObj() was removed Change-Id: I22b8445db8f52ffd6bc4a91d3441be9e5197a8a5 --- RELEASE-NOTES-1.27 | 1 + includes/Linker.php | 37 ------------------------------------- 2 files changed, 1 insertion(+), 37 deletions(-) diff --git a/RELEASE-NOTES-1.27 b/RELEASE-NOTES-1.27 index 91f2d728d1..13e15e67f9 100644 --- a/RELEASE-NOTES-1.27 +++ b/RELEASE-NOTES-1.27 @@ -209,6 +209,7 @@ changes to languages because of Phabricator reports. * LogPage::logName() was removed (deprecated since 1.19). * LogPage::logHeader() was removed (deprecated since 1.19). * wfCheckLimits() was removed (deprecated since 1.24). +* Linker::makeKnownLinkObj() was removed (deprecated since 1.16). == Compatibility == diff --git a/includes/Linker.php b/includes/Linker.php index 5255b9a133..892587526f 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -2345,43 +2345,6 @@ class Linker { return $ret; } - /** - * @deprecated since 1.16 Use link(); warnings since 1.21 - * - * Make a link for a title which definitely exists. This is faster than makeLinkObj because - * it doesn't have to do a database query. It's also valid for interwiki titles and special - * pages. - * - * @param Title $title Title object of target page - * @param string $text Text to replace the title - * @param string $query Link target - * @param string $trail Text after link - * @param string $prefix Text before link text - * @param string $aprops Extra attributes to the a-element - * @param string $style Style to apply - if empty, use getInternalLinkAttributesObj instead - * @return string The a-element - */ - static function makeKnownLinkObj( - $title, $text = '', $query = '', $trail = '', $prefix = '', $aprops = '', $style = '' - ) { - wfDeprecated( __METHOD__, '1.21' ); - - if ( $text == '' ) { - $text = self::linkText( $title ); - } - $attribs = Sanitizer::mergeAttributes( - Sanitizer::decodeTagAttributes( $aprops ), - Sanitizer::decodeTagAttributes( $style ) - ); - $query = wfCgiToArray( $query ); - list( $inside, $trail ) = self::splitTrail( $trail ); - - $ret = self::link( $title, "$prefix$text$inside", $attribs, $query, - array( 'known', 'noclasses' ) ) . $trail; - - return $ret; - } - /** * Returns the attributes for the tooltip and access key. * @param string $name -- 2.20.1