Make WordPress Core

Changeset 40932


Ignore:
Timestamp:
06/25/2017 06:40:39 AM (8 years ago)
Author:
DrewAPicture
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/l10n.php

    r40362 r40932  
    222222 * Retrieve the translation of $text and escapes it for safe use in HTML output.
    223223 *
    224  * If there is no translation, or the text domain isn't loaded, the original text is returned.
     224 * If there is no translation, or the text domain isn't loaded, the original text
     225 * is escaped and returned..
    225226 *
    226227 * @since 2.8.0
Note: See TracChangeset for help on using the changeset viewer.