[wp-trac] [WordPress Trac] #35355: Customizer should not try to return to the login screen
WordPress Trac
noreply at wordpress.org
Thu Jan 7 21:40:19 UTC 2016
#35355: Customizer should not try to return to the login screen
------------------------------+-------------------------
Reporter: celloexpressions | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.5
Component: Customize | Version: 4.4
Severity: normal | Keywords: needs-patch
Focuses: |
------------------------------+-------------------------
In #32637, we based the action of the Customizer close button on the
referring URL. However, if the login URL is accessed on the way to the
Customizer, this results in a mess of redirects and confusing behavior for
the user (while also inducing fear that their changes were not
saved/published).
The main reason I opened #32637 in the first place was for when someone
has a Customizer link bookmarked or enters it directly; however, these are
the very situations where they are most likely to need to log in first,
causing this bug.
There are two options for fixing this behavior - adding something to
prevent the login page from being accessed explicitly, or removing the
behavior of trying to find the referrer entirely in favor of the preview
URL and/or home URL fallbacks. It would probably be better to go with the
first option, although my concern with that approach is that there may be
other cases like that where returning to the referring URL causes
problems.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35355>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list