Post Editor: BrowserURL should be resilient to post save failure #7123
Labels
General Interface
Parts of the UI which don't fall neatly under other labels.
[Type] Enhancement
A suggestion for improvement.
Related: #7122 (specifically #7122 (comment) )
Currently, if a save request fails for a post where the request explicitly updates the post status, the
BrowserURL
component introduced in #7122 will not revert the URL back topost-new.php
if the post was an auto-draft at the time of initiating the save.Steps to reproduce:
Expected result:
The post is optimistically assumed to update, thus it's reasonable for the URL to change, but once the save fails, it should revert back to the URL which had existed prior to the save being initiated (i.e.
post-new.php
).Actual result:
The URL lingers in its optimistic state.
Fortunately, from what has been tested, it is perfectly okay for
post-new.php
to be treated as equivalent topost.php?id=XYZ&action=edit
where XYZ is the post ID for an auto-draft post, so no breakage occurs.The text was updated successfully, but these errors were encountered: