Similar to T263209 for ApiDelete: the undelete API module should have an option that allows the user to undelete the associated talk of non-talk pages. This will only permit restoring all revisions of the talk page.
Acceptance criteria
- Add an undeletetalk parameter to the Undelete API
- If subject page undeletion fails (i.e. it doesn't have deleted revisions), talk page undeletion should be aborted
- If restoring the associated talk page fails, restoring the subject page should still happen but with a warning about the talk page failing
- If the talk page exists but has some deleted revisions, undeletetalk should restore them.