From 87cd3c8e219614892fba52813c770713a4995159 Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Wed, 17 Jan 2018 10:01:51 -0500 Subject: [PATCH] ApiQueryTags: Remove unused tgprop value 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 | 4 +++- includes/api/ApiQueryTags.php | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/RELEASE-NOTES-1.31 b/RELEASE-NOTES-1.31 index fca71a78e7..45d096d4c7 100644 --- a/RELEASE-NOTES-1.31 +++ b/RELEASE-NOTES-1.31 @@ -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 === * … diff --git a/includes/api/ApiQueryTags.php b/includes/api/ApiQueryTags.php index 1b154faecb..b340b57d79 100644 --- a/includes/api/ApiQueryTags.php +++ b/includes/api/ApiQueryTags.php @@ -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', -- 2.20.1