WordPress.org

Make WordPress Core

Ticket #7753: 7753.diff

File 7753.diff, 2.5 KB (added by Denis-de-Bernardy, 6 years ago)

the stuff in Patch.zip, in a single diff format

  • wp-includes/functions.php

     
    9797                $gmt = true; 
    9898        } 
    9999 
     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   
    100105        // store original value for language with untypical grammars 
    101106        // see http://core.trac.wordpress.org/ticket/9396 
    102107        $req_format = $dateformatstring; 
     
    140145        // let the user override the precision only 
    141146        $decimals = ( is_null( $decimals ) ) ? $wp_locale->number_format['decimals'] : intval( $decimals ); 
    142147 
    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 );  
    144152} 
    145153 
    146154/** 
  • wp-admin/includes/template.php

     
    12981298        <div class="comment_status">' . $post->comment_status . '</div> 
    12991299        <div class="ping_status">' . $post->ping_status . '</div> 
    13001300        <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> 
    13071307        <div class="post_password">' . wp_specialchars($post->post_password, 1) . '</div>'; 
    13081308 
    13091309        if( $post->post_type == 'page' )