Deprecate hacky wfSplitWikiID() method
authorAaron Schulz <aschulz@wikimedia.org>
Sun, 21 Oct 2018 07:47:26 +0000 (00:47 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sat, 27 Oct 2018 04:49:09 +0000 (04:49 +0000)
Change-Id: I59095ee7cc39f634d124fa711ec01a5a5d188d23

RELEASE-NOTES-1.33
includes/GlobalFunctions.php

index e3bd208..999cda8 100644 (file)
@@ -81,6 +81,8 @@ because of Phabricator reports.
 * The LegacyHookPreAuthenticationProvider class, deprecated since its creation
   in 1.27 as part of the AuthManager re-write, now emits deprecation warnings.
   This will help identify the issue if you added it to $wgAuthManagerConfig.
+* wfSplitWikiId() is now deprecated. Cache key generation should have the wiki
+  domain ID as a key component and use makeGlobalKey().
 * …
 
 === Other changes in 1.33 ===
index 4531b54..6e95871 100644 (file)
@@ -2656,6 +2656,7 @@ function wfWikiID() {
  * @param string $wiki
  *
  * @return array
+ * @deprecated 1.32
  */
 function wfSplitWikiID( $wiki ) {
        $bits = explode( '-', $wiki, 2 );