[wp-trac] [WordPress Trac] #57839: Coding Standards fixes for WP 6.3
WordPress Trac
noreply at wordpress.org
Mon Mar 13 10:52:40 UTC 2023
#57839: Coding Standards fixes for WP 6.3
----------------------------+---------------------
Reporter: hellofromTonya | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.3
Component: General | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+---------------------
Comment (by SergeyBiryukov):
In [changeset:"55540" 55540]:
{{{
#!CommitTicketReference repository="" revision="55540"
Coding Standards: Bring some consistency to `wp_validate_redirect()`
existence checks.
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.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57839#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list