Make WordPress Core


Ignore:
Timestamp:
11/19/2009 10:49:16 PM (15 years ago)
Author:
ryan
Message:

Add context to strings. Props nbachiyski. fixes #10738

File:
1 edited

Legend:

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

    r12179 r12231  
    206206function esc_attr_x( $single, $context, $domain = 'default' ) {
    207207    return esc_attr( translate_with_gettext_context( $single, $context, $domain ) );
     208}
     209
     210function esc_html_x( $single, $context, $domain = 'default' ) {
     211    return esc_html( translate_with_gettext_context( $single, $context, $domain ) );
    208212}
    209213
Note: See TracChangeset for help on using the changeset viewer.