Ticket #7753: 7753.diff
File 7753.diff, 2.5 KB (added by , 16 years ago) |
---|
-
wp-includes/functions.php
97 97 $gmt = true; 98 98 } 99 99 100 // Let the user convert date from Gregorian to localized calendar system 101 $j = apply_filters( 'pre_date_i18n', $dateformatstring, $i, $gmt ); 102 if ($j !== $dateformatstring) 103 return $j; 104 100 105 // store original value for language with untypical grammars 101 106 // see http://core.trac.wordpress.org/ticket/9396 102 107 $req_format = $dateformatstring; … … 140 145 // let the user override the precision only 141 146 $decimals = ( is_null( $decimals ) ) ? $wp_locale->number_format['decimals'] : intval( $decimals ); 142 147 143 return number_format( $number, $decimals, $wp_locale->number_format['decimal_point'], $wp_locale->number_format['thousands_sep'] ); 148 $num = number_format( $number, $decimals, $wp_locale->number_format['decimal_point'], $wp_locale->number_format['thousands_sep'] ); 149 150 // let the user translate digits from latin to localized language 151 return apply_filters( 'number_format_i18n', $num ); 144 152 } 145 153 146 154 /** -
wp-admin/includes/template.php
1298 1298 <div class="comment_status">' . $post->comment_status . '</div> 1299 1299 <div class="ping_status">' . $post->ping_status . '</div> 1300 1300 <div class="_status">' . $post->post_status . '</div> 1301 <div class="jj">' . mysql2date( 'd', $post->post_date ) . '</div>1302 <div class="mm">' . mysql2date( 'm', $post->post_date ) . '</div>1303 <div class="aa">' . mysql2date( 'Y', $post->post_date ) . '</div>1304 <div class="hh">' . mysql2date( 'H', $post->post_date ) . '</div>1305 <div class="mn">' . mysql2date( 'i', $post->post_date ) . '</div>1306 <div class="ss">' . mysql2date( 's', $post->post_date ) . '</div>1301 <div class="jj">' . mysql2date( 'd', $post->post_date, false ) . '</div> 1302 <div class="mm">' . mysql2date( 'm', $post->post_date, false ) . '</div> 1303 <div class="aa">' . mysql2date( 'Y', $post->post_date, false ) . '</div> 1304 <div class="hh">' . mysql2date( 'H', $post->post_date, false ) . '</div> 1305 <div class="mn">' . mysql2date( 'i', $post->post_date, false ) . '</div> 1306 <div class="ss">' . mysql2date( 's', $post->post_date, false ) . '</div> 1307 1307 <div class="post_password">' . wp_specialchars($post->post_password, 1) . '</div>'; 1308 1308 1309 1309 if( $post->post_type == 'page' )