Reedy has submitted this change and it was merged. Change subject: (bug 41990) Fix regression in API edit of redirect ......................................................................
(bug 41990) Fix regression in API edit of redirect Before ContentHandler, an API edit passing a redirect for title and redirect=true and omitting basetimestamp would use the last revision timestamp of the target page. When ContentHandler was merged, this was accidentally changed to use the last revision timestamp of the redirect page, which was likely much earlier than the target page's last revision and so causes an edit conflict in almost all cases. Some scripts took advantage of this along with appendtext to add notices to users' talk pages, so restore that old behavior. We'll also adjust the contentmodel/contentformat detection added by ContentHandler to use the model and format of the target page rather than the redirect in this case, as that seems more likely to be less wrong. Change-Id: If0c674e26a4deb54ec14f0bf45418d666a397347 --- M RELEASE-NOTES-1.21 M includes/api/ApiEditPage.php 2 files changed, 27 insertions(+), 22 deletions(-) Approvals: Reedy: Verified; Looks good to me, approved -- To view, visit https://gerrit.wikimedia.org/r/33082 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: If0c674e26a4deb54ec14f0bf45418d666a397347 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: wmf/1.21wmf3 Gerrit-Owner: Reedy <[email protected]> Gerrit-Reviewer: Anomie <[email protected]> Gerrit-Reviewer: Reedy <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
