Make WordPress Core

Opened 5 years ago

Last modified 17 months ago

#35449 assigned enhancement

Add ability to filter back to blog link on login page

Reported by: ebinnion Owned by: adamsilverstein
Milestone: Priority: normal
Severity: normal Version:
Component: Login and Registration Keywords: has-patch dev-feedback
Focuses: Cc:


There is currently not a way to filter the "Back to {site_name_here}" link at the bottom of the /wp-login.php page.

Depending on context, a user may want to change the text that is displayed in that link as well as the link itself. One example would be that on WordPress.com, we use this wording: "Return to {site_name_here}".

I propose that we add a filter that will allow developers to customize that link depending on context.

Attachments (2)

35449.diff (1021 bytes) - added by ebinnion 5 years ago.
Adds back_to_blog_link filter to login footer.
35449.2.diff (1.0 KB) - added by adamsilverstein 5 years ago.

Download all attachments as: .zip

Change History (6)

5 years ago

Adds back_to_blog_link filter to login footer.

#1 @ebinnion
5 years ago

  • Keywords has-patch added

#2 @adamsilverstein
5 years ago

  • Keywords dev-feedback added
  • Owner set to adamsilverstein
  • Status changed from new to assigned

@ebinnion Thanks for the patch! This seems like a useful enhancement.

In 35449.2.diff I did a tiny bit of cleanup:

  • removed title attribute from link, we are trying not to use those and are even actively removing their existing use from core, see #24766
  • removed escaping from translations, these are considered trusted in core
  • added a translator comment so the context of %s is clear
  • slight update to the filter description to mach how other filters are described
  • regenerate from trunk folder (up one level)
Last edited 5 years ago by adamsilverstein (previous) (diff)

#3 @DrewAPicture
5 years ago

  • Milestone changed from Awaiting Review to Future Release

@adamsilverstein: 35449.2.diff introduces an inconsistency in changing the default "Back to %s" string to "Return to %s" while naming the filter "back_to_blog_link". We should probably pick one :-)

#4 @chriscct7
5 years ago

  • Version trunk deleted
Note: See TracTickets for help on using tickets.