Make WordPress Core

Ticket #32840: 32840.2.patch

File 32840.2.patch, 1.4 KB (added by CreativeJuiz, 10 years ago)

The patch without code error... better than the first one ;)

  • l10n.php

     
    280280}
    281281
    282282/**
     283 * Display translated string with gettext context, and escapes it for safe use in an attribute.
     284 *
     285 * @since 4.2.3
     286 *
     287 * @param string $text    Text to translate.
     288 * @param string $context Context information for the translators.
     289 * @param string $domain  Optional. Text domain. Unique identifier for retrieving translated strings.
     290 * @return string Translated text
     291 */
     292function esc_attr_ex( $text, $context, $domain = 'default' ) {
     293        echo esc_attr_x( $text, $context, $domain );
     294}
     295
     296/**
    283297 * Translate string with gettext context, and escapes it for safe use in HTML output.
    284298 *
    285299 * @since 2.9.0
     
    294308}
    295309
    296310/**
     311 * Display translated string with gettext context, and escapes it for safe use in HTML output.
     312 *
     313 * @since 4.2.3
     314 *
     315 * @param string $text    Text to translate.
     316 * @param string $context Context information for the translators.
     317 * @param string $domain  Optional. Text domain. Unique identifier for retrieving translated strings.
     318 * @return string Translated text.
     319 */
     320function esc_html_ex( $text, $context, $domain = 'default' ) {
     321        echo esc_html_x( $text, $context, $domain );
     322}
     323
     324/**
    297325 * Retrieve the plural or single form based on the supplied amount.
    298326 *
    299327 * If the text domain is not set in the $l10n list, then a comparison will be made