diff --git a/includes/ApiVisualEditorEdit.php b/includes/ApiVisualEditorEdit.php index 39ae22770b..c01a9688f0 100644 --- a/includes/ApiVisualEditorEdit.php +++ b/includes/ApiVisualEditorEdit.php @@ -92,7 +92,9 @@ class ApiVisualEditorEdit extends ApiBase { 'starttimestamp' => $params['starttimestamp'], 'token' => $params['token'], 'watchlist' => $params['watchlist'], - 'tags' => $params['tags'], + // NOTE: Must use getText() to work; PHP array from $params['tags'] is not understood + // by the edit API. + 'tags' => $this->getRequest()->getText( 'tags' ), 'section' => $params['section'], 'sectiontitle' => $params['sectiontitle'], 'captchaid' => $params['captchaid'],