If wt is passed in, set it as the source unconditionally
- If not, there's a potential for subtle bugs like in T58820. On master, try:
curl -d "wt=[http://en.wikipedia.org/ external link]" http://localhost:8000/mediawikiwiki/Parsoid?oldid=1560054
And look at the shadowed href attribute.
- Was only an issue when wt && pageName && oldid were all set.
- Also, if an oldid is set, fetch the page info unconditionally.