Drop Title::getTitleInvalidRegex(), deprecated in 1.25
authorJames D. Forrester <jforrester@wikimedia.org>
Tue, 6 Mar 2018 17:09:41 +0000 (17:09 +0000)
committerKunal Mehta <legoktm@member.fsf.org>
Mon, 26 Mar 2018 17:55:41 +0000 (10:55 -0700)
Change-Id: I8b8dd744c4c2ca5a13c89701b44013ddda785f3b

RELEASE-NOTES-1.31
includes/Title.php

index 06514bc..60e4cf6 100644 (file)
@@ -315,6 +315,8 @@ changes to languages because of Phabricator reports.
 * ChangeTags::listExtensionActivatedTags and ::listExtensionDefinedTags, deprecated
   in 1.28, have been removed.  Use ::listSoftwareActivatedTags() and
   ::listSoftwareDefinedTags() instead.
+* Title::getTitleInvalidRegex(), deprecated in 1.25, has been removed. You
+  can use MediaWikiTitleCodec::getTitleInvalidRegex() instead.
 
 == Compatibility ==
 MediaWiki 1.31 requires PHP 5.5.9 or later. Although HHVM 3.18.5 or later is supported,
index 66aadeb..8dda01f 100644 (file)
@@ -625,20 +625,6 @@ class Title implements LinkTarget {
                return $wgLegalTitleChars;
        }
 
-       /**
-        * Returns a simple regex that will match on characters and sequences invalid in titles.
-        * Note that this doesn't pick up many things that could be wrong with titles, but that
-        * replacing this regex with something valid will make many titles valid.
-        *
-        * @deprecated since 1.25, use MediaWikiTitleCodec::getTitleInvalidRegex() instead
-        *
-        * @return string Regex string
-        */
-       static function getTitleInvalidRegex() {
-               wfDeprecated( __METHOD__, '1.25' );
-               return MediaWikiTitleCodec::getTitleInvalidRegex();
-       }
-
        /**
         * Utility method for converting a character sequence from bytes to Unicode.
         *