[wp-trac] [WordPress Trac] #48085: use wp_safe_redirect() function
WordPress Trac
noreply at wordpress.org
Fri Sep 20 17:40:08 UTC 2019
#48085: use wp_safe_redirect() function
-----------------------------+------------------------------
Reporter: dkarfa | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: has-patch close | Focuses:
-----------------------------+------------------------------
Changes (by SergeyBiryukov):
* keywords: has-patch => has-patch close
Comment:
Thanks for the patch! It would be helpful to describe what problem it
solves though :)
Looking at other instances of `wp_safe_redirect()` in the admin, it's only
used in combination with `wp_get_referer()` to validate the target
location sent by the client's browser.
I don't see a point in using it when the location is a known admin URL.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48085#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list