[wp-trac] [WordPress Trac] #63376: Enhancement: wp_login_form() $redirect params default value fetching update
WordPress Trac
noreply at wordpress.org
Thu May 1 14:54:13 UTC 2025
#63376: Enhancement: wp_login_form() $redirect params default value fetching update
------------------------------------+------------------------------
Reporter: sh4lin | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Login and Registration | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
------------------------------------+------------------------------
Comment (by siliconforks):
Replying to [ticket:63376 sh4lin]:
> `home_url( wp_unslash( sanitize_url( $_SERVER['REQUEST_URI'] ) ) )`
That will not work for all WordPress installations - suppose `get_option(
'home' )` returns something like `'https://example.com/wordpress'`.
There is a function `get_self_link()` in `wp-includes/feed.php` which
attempts to handle this situation. (But I'm not sure it will work for all
cases.)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63376#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list