Remove Title::newFromRedirect()
authorFlorian <florian.schmidt.stargatewissen@gmail.com>
Fri, 1 Apr 2016 20:32:36 +0000 (22:32 +0200)
committerFlorian <florian.schmidt.stargatewissen@gmail.com>
Fri, 1 Apr 2016 21:47:01 +0000 (23:47 +0200)
Deprecated since 1.21.

Bug: T122754
Change-Id: Iddf1c2d61cafc017bf361b747db38ac1bc5f3f09

RELEASE-NOTES-1.27
includes/Title.php

index 7f3df44..2a30b3d 100644 (file)
@@ -390,6 +390,7 @@ changes to languages because of Phabricator reports.
 * OutputPage::setAllowedModules() was removed (deprecated since 1.24).
 * UserrightsPage::makeGroupNameListForLog() was removed (deprecated since 1.21).
 * MediaWikiSite::newFromGlobalId() was removed (deprecated since 1.21).
+* Title::newFromRedirect() was removed (deprecated since 1.21).
 
 == Compatibility ==
 
index 8bafe26..ec17ef5 100644 (file)
@@ -572,23 +572,6 @@ class Title implements LinkTarget {
                return $title;
        }
 
-       /**
-        * Extract a redirect destination from a string and return the
-        * Title, or null if the text doesn't contain a valid redirect
-        * This will only return the very next target, useful for
-        * the redirect table and other checks that don't need full recursion
-        *
-        * @param string $text Text with possible redirect
-        * @return Title The corresponding Title
-        * @deprecated since 1.21, use Content::getRedirectTarget instead.
-        */
-       public static function newFromRedirect( $text ) {
-               ContentHandler::deprecated( __METHOD__, '1.21' );
-
-               $content = ContentHandler::makeContent( $text, null, CONTENT_MODEL_WIKITEXT );
-               return $content->getRedirectTarget();
-       }
-
        /**
         * Extract a redirect destination from a string and return the
         * Title, or null if the text doesn't contain a valid redirect