Make WordPress Core

Ticket #24212: 24212.5.diff

File 24212.5.diff, 1.4 KB (added by ericlewis, 12 years ago)
  • src/wp-includes/l10n.php

     
    219219}
    220220
    221221/**
    222  * Display translated string with gettext context, and escapes it for safe use in an attribute.
     222 * Translate string with gettext context, and escapes it for safe use in an attribute.
    223223 *
    224224 * @since 2.8.0
    225225 *
    226226 * @param string $text    Text to translate.
    227227 * @param string $context Context information for the translators.
    228  * @param string $domain  Optional. Unique identifier for retrieving translated strings.
     228 * @param string $domain  Optional. Text domain.
    229229 * @return string Translated text
    230230 */
    231231function esc_attr_x( $text, $context, $domain = 'default' ) {
     
    233233}
    234234
    235235/**
    236  * Display translated string with gettext context, and escapes it for safe use in HTML output.
     236 * Translate string with gettext context, and escapes it for safe use in HTML output.
    237237 *
    238238 * @since 2.9.0
    239239 *
    240240 * @param string $text    Text to translate.
    241241 * @param string $context Context information for the translators.
    242  * @param string $domain  Optional. Unique identifier for retrieving translated strings.
     242 * @param string $domain  Optional. Text domain.
    243243 * @return string Translated text.
    244244 */
    245245function esc_html_x( $text, $context, $domain = 'default' ) {