From 1883d96173015dc8ed1e53e4348a44844c924b4d Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 25 Jun 2017 06:40:39 +0000 Subject: [PATCH] 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 --- src/wp-includes/l10n.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/l10n.php b/src/wp-includes/l10n.php index c5e460a12b..a81470ff7d 100644 --- a/src/wp-includes/l10n.php +++ b/src/wp-includes/l10n.php @@ -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 *