Ticket #11226: 11226.diff
File 11226.diff, 1.1 KB (added by , 15 years ago) |
---|
-
wp-includes/functions.php
81 81 * @param string $dateformatstring Format to display the date. 82 82 * @param int $unixtimestamp Optional. Unix timestamp. 83 83 * @param bool $gmt Optional, default is false. Whether to convert to GMT for time. 84 * @param string $context Optional, the date's context for languages with untypical grammars 84 85 * @return string The date, translated if locale specifies it. 85 86 */ 86 function date_i18n( $dateformatstring, $unixtimestamp = false, $gmt = false ) {87 function date_i18n( $dateformatstring, $unixtimestamp = false, $gmt = false, $context = '' ) { 87 88 global $wp_locale; 88 89 $i = $unixtimestamp; 89 90 // Sanity check for PHP 5.1.0- … … 122 123 } 123 124 $j = @$datefunc( $dateformatstring, $i ); 124 125 // allow plugins to redo this entirely for languages with untypical grammars 125 $j = apply_filters('date_i18n', $j, $req_format, $i, $gmt );126 $j = apply_filters('date_i18n', $j, $req_format, $i, $gmt, $context); 126 127 return $j; 127 128 } 128 129