mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-24 07:36:02 +00:00
The `wp_get_referer()` and `wp_get_original_referer()` functions both depend on `wp_validate_redirect()` and check whether it is defined by the time they run, but do so in a slightly different way. This commit ensures both functions return early if they are called before `wp_validate_redirect()` is defined. Follow-up to [3908], [25399], [25400]. See #57839. Built from https://develop.svn.wordpress.org/trunk@55540 git-svn-id: http://core.svn.wordpress.org/trunk@55052 1a063a9b-81f0-0310-95a4-ce76da25c4cd