[wp-trac] [WordPress Trac] #36014: Move the aria-label text into a separate translation string

WordPress Trac noreply at wordpress.org
Mon Feb 29 19:25:45 UTC 2016


#36014: Move the aria-label text into a separate translation string
--------------------------+------------------------------
 Reporter:  ramiy         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  I18N          |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  accessibility
--------------------------+------------------------------

Comment (by ramiy):

 The new code:

 {{{
 sprintf(
         __( '<a href="%1$s" aria-label="%2$s">Logged in as %3$s</a>. <a
 href="%4$s">Log out?</a>' ),
         get_edit_user_link(),
         esc_attr( sprintf( __( 'Logged in as %s. Edit your profile.' ),
 $user_identity ) ),
         $user_identity,
         wp_logout_url( apply_filters( 'the_permalink', get_permalink(
 $post_id ) ) )
 )
 }}}

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


More information about the wp-trac mailing list