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.

Built from https://develop.svn.wordpress.org/trunk@40932


git-svn-id: http://core.svn.wordpress.org/trunk@40782 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2017-06-25 06:41:41 +00:00
parent c5da335097
commit 6146ba0b33
2 changed files with 3 additions and 2 deletions

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
*

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.9-alpha-40931';
$wp_version = '4.9-alpha-40932';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.