Opened 23 months ago
Last modified 4 weeks ago
#17950 closed enhancement
Introduce wp_registration_url() — at Version 7
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 3.6 |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | has-patch commit needs-codex |
| Cc: | meloniq@…, mail@… |
Description (last modified by scribu)
It would be handy to have a wp_registration_url() template tag, to complete the wp_login_url() and wp_logout_url() triad.
Change History (11)
I noticed that wp-login.php itself never uses wp_login_url() so I didn't use wp_register_url() there either.
In 17950.2.diff since wp_register_url is filterable, we should probably esc_url when printing the register link. Also, you might want to remove the $redirect variable since it's undefined and we're not going to be using it anyway :)
Fixed in 17950.3.diff and also use it in wp-login.php.
comment:6
MikeSchinkel — 6 months ago
Something to consider, wp_register_url() could easily be confused to provide functionality to register a URL like register_taxonomy() registers a taxonomy.
Suggestion: Change from verb to noun and call it wp_registration_url().

$redirect param isn't useful