Linker::makeLinkObj() was removed
authorReedy <reedy@wikimedia.org>
Sat, 2 Jan 2016 22:47:08 +0000 (22:47 +0000)
committerReedy <reedy@wikimedia.org>
Sun, 3 Jan 2016 00:08:43 +0000 (00:08 +0000)
Change-Id: Id0fe255fd65403d02498f5a98292c560d39dd95a

RELEASE-NOTES-1.27
includes/Linker.php
includes/parser/Parser.php

index 13e15e6..a6e6263 100644 (file)
@@ -210,6 +210,7 @@ changes to languages because of Phabricator reports.
 * LogPage::logHeader() was removed (deprecated since 1.19).
 * wfCheckLimits() was removed (deprecated since 1.24).
 * Linker::makeKnownLinkObj() was removed (deprecated since 1.16).
+* Linker::makeLinkObj() was removed (deprecated since 1.16).
 
 == Compatibility ==
 
index 8925875..5e035ea 100644 (file)
@@ -2315,36 +2315,6 @@ class Linker {
 
        /* Deprecated methods */
 
-       /**
-        * @deprecated since 1.16 Use link(); warnings since 1.21
-        *
-        * Make a link for a title which may or may not be in the database. If you need to
-        * call this lots of times, pre-fill the link cache with a LinkBatch, otherwise each
-        * call to this will result in a DB query.
-        *
-        * @param Title $nt The title object to make the link from, e.g. from Title::newFromText.
-        * @param string $text Link text
-        * @param string $query Optional query part
-        * @param string $trail Optional trail. Alphabetic characters at the start of this string will
-        *   be included in the link text. Other characters will be appended after
-        *   the end of the link.
-        * @param string $prefix Optional prefix. As trail, only before instead of after.
-        * @return string
-        */
-       static function makeLinkObj( $nt, $text = '', $query = '', $trail = '', $prefix = '' ) {
-               wfDeprecated( __METHOD__, '1.21' );
-
-               $query = wfCgiToArray( $query );
-               list( $inside, $trail ) = self::splitTrail( $trail );
-               if ( $text === '' ) {
-                       $text = self::linkText( $nt );
-               }
-
-               $ret = self::link( $nt, "$prefix$text$inside", array(), $query ) . $trail;
-
-               return $ret;
-       }
-
        /**
         * Returns the attributes for the tooltip and access key.
         * @param string $name
index eaecedd..7b4a650 100644 (file)
@@ -5276,9 +5276,8 @@ class Parser {
        }
 
        /**
-        * @todo FIXME: Update documentation. makeLinkObj() is deprecated.
         * Replace "<!--LINK-->" link placeholders with actual links, in the buffer
-        * Placeholders created in Skin::makeLinkObj()
+        * Placeholders created in Linker::link()
         *
         * @param string $text
         * @param int $options