Linker::link: Drop support for string query param, deprecated in 1.20
authorJames D. Forrester <jforrester@wikimedia.org>
Fri, 21 Jun 2019 20:56:34 +0000 (13:56 -0700)
committerJames D. Forrester <jforrester@wikimedia.org>
Mon, 24 Jun 2019 18:11:17 +0000 (11:11 -0700)
Change-Id: I910cead2c32a3525772ee0640c8ed3b90ad40a84

RELEASE-NOTES-1.34
includes/Linker.php

index 5c0b57e..87068d8 100644 (file)
@@ -230,6 +230,8 @@ because of Phabricator reports.
 * OutputPage::wrapWikiMsg() no longer accepts an options parameter. This was
   deprecated since 1.20.
 * Skin::outputPage() no longer accepts a context. This was deprecated in 1.20.
 * OutputPage::wrapWikiMsg() no longer accepts an options parameter. This was
   deprecated since 1.20.
 * Skin::outputPage() no longer accepts a context. This was deprecated in 1.20.
+* Linker::link() no longer accepts a string for the query array, as was
+  deprecated in 1.20.
 * …
 
 === Deprecations in 1.34 ===
 * …
 
 === Deprecations in 1.34 ===
index 39f4394..1980154 100644 (file)
@@ -89,12 +89,6 @@ class Linker {
                        return "<!-- ERROR -->$html";
                }
 
                        return "<!-- ERROR -->$html";
                }
 
-               if ( is_string( $query ) ) {
-                       // some functions withing core using this still hand over query strings
-                       wfDeprecated( __METHOD__ . ' with parameter $query as string (should be array)', '1.20' );
-                       $query = wfCgiToArray( $query );
-               }
-
                $services = MediaWikiServices::getInstance();
                $options = (array)$options;
                if ( $options ) {
                $services = MediaWikiServices::getInstance();
                $options = (array)$options;
                if ( $options ) {