Reedy has uploaded a new change for review.

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

Change subject: Linker::makeKnownLinkObj() was removed
......................................................................

Linker::makeKnownLinkObj() was removed

Change-Id: I22b8445db8f52ffd6bc4a91d3441be9e5197a8a5
---
M RELEASE-NOTES-1.27
M includes/Linker.php
2 files changed, 1 insertion(+), 37 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/19/262019/1

diff --git a/RELEASE-NOTES-1.27 b/RELEASE-NOTES-1.27
index 8be703e..c6d410e 100644
--- a/RELEASE-NOTES-1.27
+++ b/RELEASE-NOTES-1.27
@@ -206,6 +206,7 @@
 * WikiPage::testPreSaveTransform() was removed (deprecated since 1.19).
 * LogPage::logName() was removed (deprecated since 1.19).
 * LogPage::logHeader() was removed (deprecated since 1.19).
+* Linker::makeKnownLinkObj() was removed (deprecated since 1.16).
 
 == Compatibility ==
 
diff --git a/includes/Linker.php b/includes/Linker.php
index 5255b9a..8925875 100644
--- a/includes/Linker.php
+++ b/includes/Linker.php
@@ -2346,43 +2346,6 @@
        }
 
        /**
-        * @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
         * @return array

-- 
To view, visit https://gerrit.wikimedia.org/r/262019
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I22b8445db8f52ffd6bc4a91d3441be9e5197a8a5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to