[wp-trac] [WordPress Trac] #35449: Add ability to filter back to blog link on login page

WordPress Trac noreply at wordpress.org
Thu Dec 17 23:37:46 UTC 2020


#35449: Add ability to filter back to blog link on login page
-------------------------------------------------+-------------------------
 Reporter:  ebinnion                             |       Owner:
                                                 |  adamsilverstein
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  5.7
Component:  Login and Registration               |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch dev-feedback has-          |     Focuses:
  screenshots                                    |
-------------------------------------------------+-------------------------
Changes (by audrasjb):

 * keywords:  has-patch dev-feedback => has-patch dev-feedback has-
               screenshots


Comment:

 `35449.3.diff` refreshes the patch against trunk and against some string
 changes that happened in WP 5.6.

 I tested it using the following snippet:
 {{{#!php
 <?php
 function my_login_site_html_link( $link ) {
         return '<a href="' . esc_url( home_url( '/' ) ) . '">' . __( 'Back
 to the website', 'my-theme' ) . '</a>';
 }
 add_filter( 'login_site_html_link', 'my_login_site_html_link', 10, 1 );
 }}}

 Works fine (see before/after screenshots below).

 My only concern is about the name of the filter. Any thought?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/35449#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list