WordPress.org

Make WordPress Core

Opened 6 weeks ago

Last modified 6 weeks ago

#48085 new defect (bug)

use wp_safe_redirect() function

Reported by: dkarfa Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Administration Keywords: has-patch close
Focuses: Cc:
PR Number:

Description


Attachments (1)

48085.patch (1.3 KB) - added by dkarfa 6 weeks ago.

Download all attachments as: .zip

Change History (2)

@dkarfa
6 weeks ago

#1 @SergeyBiryukov
6 weeks ago

  • Keywords close added

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.

Note: See TracTickets for help on using tickets.