[wp-trac] [WordPress Trac] #27152: wp_get_referer() no longer reports off-site referrers
WordPress Trac
noreply at wordpress.org
Mon Dec 28 12:07:11 UTC 2015
#27152: wp_get_referer() no longer reports off-site referrers
----------------------------------------+--------------------
Reporter: bpetty | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.5
Component: Bootstrap/Load | Version: 3.6.1
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses:
----------------------------------------+--------------------
Changes (by swissspidy):
* milestone: Awaiting Review => 4.5
Comment:
[attachment:27152.2.diff] is an updated patch that makes things more DRY
by using `wp_get_raw_referer` in `wp_get_referer`.
Unit tests for `wp_get_referer` are being suggested in #19856. Perhaps
those are already enough, because a part of the function is simply
extracted into a new one. Otherwise it's easy to add like 2 new tests for
`wp_get_raw_referer` alone.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27152#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list