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:
Drew Jaynes 2017-06-25 06:40:39 +00:00
parent 805f4464a4
commit 1883d96173

View File

@ -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
*