[wp-trac] [WordPress Trac] #34669: Custom back_link in wp_die and provide a filter
WordPress Trac
noreply at wordpress.org
Wed Jul 6 16:57:27 UTC 2022
#34669: Custom back_link in wp_die and provide a filter
-------------------------+-----------------------
Reporter: eventualo | Owner: (none)
Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.1
Component: General | Version: 4.4
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+-----------------------
Changes (by desrosj):
* keywords: dev-feedback has-patch needs-refresh => has-patch
* owner: eventualo => (none)
* milestone: => 6.1
Comment:
Hi @eventualo,
Apologies that it took so long to receive a proper response on this one!
While I don't necessarily agree with the suggestions for allowed values of
`$args['back_link']`, I think it's reasonable to allow `$args` to be
filtered before calling the desired die handler.
I'm attaching a patch to introduce a filter hook for doing just that.
One note for `history.back()` is that depending on the browser and how the
relevant settings are configured based on user preference, form values
''may'' be preserved. If referrer is used, this would not be the case.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34669#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list