ApiQueryTags: Remove unused tgprop value
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 17 Jan 2018 15:01:51 +0000 (10:01 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Wed, 17 Jan 2018 15:07:43 +0000 (10:07 -0500)
While a tgprop=name has been defined since the module was created, it
has never made any difference to the output. Let's just remove it.

Bug: T185058
Change-Id: If9d7597751a8bdb8e415d6f7bab741452a6fd753

RELEASE-NOTES-1.31
includes/api/ApiQueryTags.php

index fca71a7..45d096d 100644 (file)
@@ -65,7 +65,9 @@ production.
 * (T90902) Non-breaking space in header ID breaks anchor
 
 === Action API changes in 1.31 ===
-* …
+* (T185058) The 'name' value to tgprop for action=query&list=tags has been
+  removed. It has never made a difference in the output, the name was always
+  returned regardless.
 
 === Action API internal changes in 1.31 ===
 * …
index 1b154fa..b340b57 100644 (file)
@@ -141,9 +141,8 @@ class ApiQueryTags extends ApiQueryBase {
                                ApiBase::PARAM_MAX2 => ApiBase::LIMIT_BIG2
                        ],
                        'prop' => [
-                               ApiBase::PARAM_DFLT => 'name',
+                               ApiBase::PARAM_DFLT => '',
                                ApiBase::PARAM_TYPE => [
-                                       'name',
                                        'displayname',
                                        'description',
                                        'hitcount',