Merge "Add default type param for recentchanges and watchlist query api modules"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 23 Feb 2015 13:32:12 +0000 (13:32 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 23 Feb 2015 13:32:12 +0000 (13:32 +0000)
RELEASE-NOTES-1.25
includes/api/ApiQueryRecentChanges.php
includes/api/ApiQueryWatchlist.php

index cdef220..466a786 100644 (file)
@@ -274,6 +274,8 @@ production.
 * The following classes have been deprecated and may be removed in a future
   release:
   * ApiQueryDeletedrevs
+* Default type param for ApiQueryWatchlist and ApiQueryRecentChanges has
+  been changed from all types (e.g. including 'external') to 'edit|new|log'.
 
 === Languages updated in 1.25 ===
 
index fd73afb..bfdc5ab 100644 (file)
@@ -688,6 +688,7 @@ class ApiQueryRecentChanges extends ApiQueryGeneratorBase {
                                ApiBase::PARAM_MAX2 => ApiBase::LIMIT_BIG2
                        ),
                        'type' => array(
+                               ApiBase::PARAM_DFLT => 'edit|new|log',
                                ApiBase::PARAM_ISMULTI => true,
                                ApiBase::PARAM_TYPE => array(
                                        'edit',
index 2cea1a6..11008cf 100644 (file)
@@ -499,6 +499,7 @@ class ApiQueryWatchlist extends ApiQueryGeneratorBase {
                                )
                        ),
                        'type' => array(
+                               ApiBase::PARAM_DFLT => 'edit|new|log',
                                ApiBase::PARAM_ISMULTI => true,
                                ApiBase::PARAM_TYPE => array(
                                        'edit',