From be9a357bee7d019adeb16246f73ac890d8d87abd Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Thu, 14 Aug 2014 13:18:07 -0400 Subject: [PATCH] API: Add rawcontinue parameter to action=query Soon the simplified continuation will become the default for action=query. This parameter will then serve select the return of the raw continuation data. To allow for clients to transition without "unrecognized parameter" warnings, I'd like to add the parameter now before even adding deprecation warnings. Change-Id: I5f6895b6a94c53a231a50707ee9463f91295da8f --- includes/api/ApiQuery.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/api/ApiQuery.php b/includes/api/ApiQuery.php index 3d6372c5e0..8407fad794 100644 --- a/includes/api/ApiQuery.php +++ b/includes/api/ApiQuery.php @@ -526,6 +526,7 @@ class ApiQuery extends ApiBase { 'exportnowrap' => false, 'iwurl' => false, 'continue' => null, + 'rawcontinue' => false, ); if ( $flags ) { $result += $this->getPageSet()->getFinalParams( $flags ); @@ -608,6 +609,8 @@ class ApiQuery extends ApiBase { 'This parameter is recommended for all new development, and ' . 'will be made default in the next API version.' ), + 'rawcontinue' => 'Currently ignored. In the future, \'continue=\' will become the ' . + 'default and this will be needed to receive the raw query-continue data.', ); } -- 2.20.1