The parameters are always the same, so there’s no point in requiring
each API module to document them separately. Just reuse action=edit’s
messages everywhere. (DiscussionTools [1] and VisualEditor [2] already
do this without using the trait.)
[1]: 46a3e15dfb/includes/ApiDiscussionToolsEdit.php (491)
[2]: b224d16b64/includes/ApiVisualEditorEdit.php (608)
Bug: T357030
Change-Id: I1c8b6b48a0e0ddb4cd10a0279f8f75ba0ab5afc5
TempUserCreatedRedirectHook::onTempUserCreatedRedirect expects a
string as its $returnTo argument. ApiCreateTempUserTrait passes
whatever the 'returnto' param is set to; however, this may be
null if not set.
Rather than require APIs that use the trait to set the 'returnto'
param, pass an empty string instead of null if not set.
Bug: T349223
Change-Id: I4fd445df67a63c5e357a3693e7f71519e5ebdd25
Refactor EditPage's logic for getting a redirect URL into a trait
that can be shared between classes that exteend ApiBase.
Bug: T349223
Change-Id: I7cafa0bfc17a75d44e1d83b9561b4b2778b5f132