Ticket #24212: 24212.5.diff
| File 24212.5.diff, 1.4 KB (added by , 12 years ago) |
|---|
-
src/wp-includes/l10n.php
219 219 } 220 220 221 221 /** 222 * Display translatedstring 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. 223 223 * 224 224 * @since 2.8.0 225 225 * 226 226 * @param string $text Text to translate. 227 227 * @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. 229 229 * @return string Translated text 230 230 */ 231 231 function esc_attr_x( $text, $context, $domain = 'default' ) { … … 233 233 } 234 234 235 235 /** 236 * Display translatedstring 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. 237 237 * 238 238 * @since 2.9.0 239 239 * 240 240 * @param string $text Text to translate. 241 241 * @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. 243 243 * @return string Translated text. 244 244 */ 245 245 function esc_html_x( $text, $context, $domain = 'default' ) {