aboutsummaryrefslogtreecommitdiffstats
path: root/includes/api/ApiQuery.php
diff options
context:
space:
mode:
authorJamie Kuppens <jamie.kuppens@thisdot.co>2024-07-17 15:26:54 -0700
committerJamie Kuppens <jamie.kuppens@thisdot.co>2024-09-16 08:45:58 -0700
commit2537859104ede85e9b584979fc24576238b00e0c (patch)
treec17088f79e33255ca2f5395bfe9fcc2db073ff6a /includes/api/ApiQuery.php
parentfd07d1eadcf665d6f862cac0ce380d4ae92302c6 (diff)
downloadmediawikicore-2537859104ede85e9b584979fc24576238b00e0c.tar.gz
mediawikicore-2537859104ede85e9b584979fc24576238b00e0c.zip
Update user widgets to support named and temp account exclusion
* This change introduces two new optional parameters to the 'allusers' API call named 'excludenamed' and 'excludetemp' that allows filtering accounts based on whether they're named accounts or temporary accounts. This is tested by using the temporary matchPattern configured with $wgAutoCreateTempUser. * User widgets that call 'allusers' have been updated so that 'excludenamed' and 'excludetemp' can be optionally set so that named or temporary accounts may not returned with user suggestions. Bug: T332030 Change-Id: I6563ae610017fd1cd35c36ba65906041f7f68c4b
Diffstat (limited to 'includes/api/ApiQuery.php')
-rw-r--r--includes/api/ApiQuery.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/api/ApiQuery.php b/includes/api/ApiQuery.php
index b6d9dd887f87..0562c559383f 100644
--- a/includes/api/ApiQuery.php
+++ b/includes/api/ApiQuery.php
@@ -314,6 +314,7 @@ class ApiQuery extends ApiBase {
'UserGroupManager',
'GroupPermissionsLookup',
'ContentLanguage',
+ 'TempUserConfig',
]
],
'backlinks' => [