From 35ba7839bef69f0c2246ebc2d5710e1052af7d04 Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Tue, 6 Mar 2018 17:09:41 +0000 Subject: [PATCH] Drop Title::getTitleInvalidRegex(), deprecated in 1.25 Change-Id: I8b8dd744c4c2ca5a13c89701b44013ddda785f3b --- RELEASE-NOTES-1.31 | 2 ++ includes/Title.php | 14 -------------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/RELEASE-NOTES-1.31 b/RELEASE-NOTES-1.31 index 06514bc206..60e4cf670d 100644 --- a/RELEASE-NOTES-1.31 +++ b/RELEASE-NOTES-1.31 @@ -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, diff --git a/includes/Title.php b/includes/Title.php index 66aadebc19..8dda01f464 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -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. * -- 2.20.1