[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:18:08 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: | 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(),
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:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list