[wp-trac] [WordPress Trac] #35670: Avoid using HTML tags in translation strings (network documentation links)
WordPress Trac
noreply at wordpress.org
Sun Feb 7 12:38:14 UTC 2016
#35670: Avoid using HTML tags in translation strings (network documentation links)
--------------------------+------------------------------
Reporter: ramiy | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Comment (by ramiy):
I can also do that with `sprintf()` for documentation strings:
{{{
sprintf(
'<a href="%1$s" target="_blank">%2$s</a>'
__( 'https://codex.wordpress.org/XXX' ),
__( 'Documentation on XXX' ),
)
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35670#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list