Ticket #7186: ozh_datei18n.patch
File ozh_datei18n.patch, 557 bytes (added by , 16 years ago) |
---|
-
functions.php
103 103 function date_i18n( $dateformatstring, $unixtimestamp ) { 104 104 global $wp_locale; 105 105 $i = $unixtimestamp; 106 // Sanity check for PHP 5.1.0- 107 if ($i == -1) 108 $i = false; 109 106 110 if ( ( !empty( $wp_locale->month ) ) && ( !empty( $wp_locale->weekday ) ) ) { 107 111 $datemonth = $wp_locale->get_month( date( 'm', $i ) ); 108 112 $datemonth_abbrev = $wp_locale->get_month_abbrev( $datemonth );