Make WordPress Core

Ticket #11226: 11226.2.diff

File 11226.2.diff, 1.3 KB (added by wonderboymusic, 9 years ago)
  • src/wp-includes/functions.php

     
    8383 * @param string   $dateformatstring Format to display the date.
    8484 * @param bool|int $unixtimestamp    Optional. Unix timestamp. Default false.
    8585 * @param bool     $gmt              Optional. Whether to use GMT timezone. Default false.
    86  *
     86 * @param string   $context          Optional. The date's context for languages with untypical grammars.
    8787 * @return string The date, translated if locale specifies it.
    8888 */
    89 function date_i18n( $dateformatstring, $unixtimestamp = false, $gmt = false ) {
     89function date_i18n( $dateformatstring, $unixtimestamp = false, $gmt = false, $context = '' ) {
    9090        global $wp_locale;
    9191        $i = $unixtimestamp;
    9292
     
    153153         * @param string $req_format Format to display the date.
    154154         * @param int    $i          Unix timestamp.
    155155         * @param bool   $gmt        Whether to convert to GMT for time. Default false.
     156         * @param string $context    Optional. The date's context for languages with untypical grammars.
    156157         */
    157         $j = apply_filters( 'date_i18n', $j, $req_format, $i, $gmt );
     158        $j = apply_filters( 'date_i18n', $j, $req_format, $i, $gmt, $context );
    158159        return $j;
    159160}
    160161