WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 4 months ago

#17950 closed enhancement

Introduce wp_registration_url() — at Version 7

Reported by: scribu Owned by:
Milestone: 3.6 Priority: low
Severity: normal Version:
Component: General Keywords: has-patch commit
Focuses: Cc:

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)

scribu3 years ago

scribu3 years ago

$redirect param isn't useful

comment:1 scribu3 years ago

I noticed that wp-login.php itself never uses wp_login_url() so I didn't use wp_register_url() there either.

comment:2 scribu18 months ago

Related: #19898

comment:3 meloniq17 months ago

  • Cc meloniq@… added

comment:4 kovshenin17 months ago

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 :)

scribu17 months ago

comment:5 scribu17 months ago

Fixed in 17950.3.diff and also use it in wp-login.php.

comment:6 MikeSchinkel17 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().

Last edited 17 months ago by MikeSchinkel (previous) (diff)

scribu17 months ago

wp_registration_url()

comment:7 scribu17 months ago

  • Description modified (diff)
  • Summary changed from Introduce wp_register_url() to Introduce wp_registration_url()

Good idea!

Note: See TracTickets for help on using tickets.