Ticket #9396: 9396.diff
File 9396.diff, 951 bytes (added by , 16 years ago) |
---|
-
Users/denis/Sites/sem-pro/wp-includes/functions.php
96 96 // specially computed timestamp 97 97 $gmt = true; 98 98 } 99 99 100 // store original value for language with untypical grammars 101 // see http://core.trac.wordpress.org/ticket/9396 102 $req_format = $dateformatstring; 103 100 104 $datefunc = $gmt? 'gmdate' : 'date'; 101 105 102 106 if ( ( !empty( $wp_locale->month ) ) && ( !empty( $wp_locale->weekday ) ) ) { … … 117 121 $dateformatstring = substr( $dateformatstring, 1, strlen( $dateformatstring ) -1 ); 118 122 } 119 123 $j = @$datefunc( $dateformatstring, $i ); 124 // allow plugins to redo this entirely for languages with untypical grammars 125 $j = apply_filters('date_i18n', $j, $req_format, $unixtimestamp, $gmt); 120 126 return $j; 121 127 } 122 128