Ticket #11226: 11226.2.diff
File 11226.2.diff, 1.3 KB (added by , 9 years ago) |
---|
-
src/wp-includes/functions.php
83 83 * @param string $dateformatstring Format to display the date. 84 84 * @param bool|int $unixtimestamp Optional. Unix timestamp. Default false. 85 85 * @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. 87 87 * @return string The date, translated if locale specifies it. 88 88 */ 89 function date_i18n( $dateformatstring, $unixtimestamp = false, $gmt = false ) {89 function date_i18n( $dateformatstring, $unixtimestamp = false, $gmt = false, $context = '' ) { 90 90 global $wp_locale; 91 91 $i = $unixtimestamp; 92 92 … … 153 153 * @param string $req_format Format to display the date. 154 154 * @param int $i Unix timestamp. 155 155 * @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. 156 157 */ 157 $j = apply_filters( 'date_i18n', $j, $req_format, $i, $gmt );158 $j = apply_filters( 'date_i18n', $j, $req_format, $i, $gmt, $context ); 158 159 return $j; 159 160 } 160 161