[wp-trac] [WordPress Trac] #27632: `wp_registration_url()` doesn't have a redirect argument
WordPress Trac
noreply at wordpress.org
Sun Dec 6 17:28:16 UTC 2015
#27632: `wp_registration_url()` doesn't have a redirect argument
------------------------------------+------------------------------
Reporter: Denis-de-Bernardy | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Login and Registration | Version: 3.6
Severity: normal | Resolution:
Keywords: has-patch | Focuses: ui
------------------------------------+------------------------------
Changes (by sanchothefat):
* keywords: needs-patch => has-patch
Comment:
The `registration_redirect` filter in `wp-login.php` seems to be the
exception to the rule in the login/forgot/register forms. There's a valid
use case for having the filter in the `wp_registration_url()` function if
it's used on the front end. You could set up logic to return a user to
their previous location on the site without relying on the referrer.
There's also code that respects the `redirect_to` get or post param if set
so this makes sense IMO.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27632#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list