Docs: Clarify the description for esc_html__()
to note that the original text will be escaped on return if there is no translation, or the text domain isn't loaded.
Props brianlayman. See #41017. git-svn-id: https://develop.svn.wordpress.org/trunk@40932 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
805f4464a4
commit
1883d96173
@ -221,7 +221,8 @@ function esc_attr__( $text, $domain = 'default' ) {
|
||||
/**
|
||||
* Retrieve the translation of $text and escapes it for safe use in HTML output.
|
||||
*
|
||||
* If there is no translation, or the text domain isn't loaded, the original text is returned.
|
||||
* If there is no translation, or the text domain isn't loaded, the original text
|
||||
* is escaped and returned..
|
||||
*
|
||||
* @since 2.8.0
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user