Make WordPress Core

Ticket #1200: date_i18n.patch

File date_i18n.patch, 1.1 KB (added by nbachiyski, 19 years ago)
  • wp-includes/functions.php

     
    6565                $datemonth = $month[date('m', $i)];
    6666                $dateweekday = $weekday[date('w', $i)];
    6767                $dateformatstring = ' '.$dateformatstring;
    68                 $dateformatstring = preg_replace("/([^\\\])D/", "\\1".backslashit(substr($dateweekday, 0, 3)), $dateformatstring);
     68                $dateformatstring = preg_replace("/([^\\\])D/", "\\1".backslashit($dateweekday_abbrev), $dateformatstring);
    6969                $dateformatstring = preg_replace("/([^\\\])F/", "\\1".backslashit($datemonth), $dateformatstring);
    7070                $dateformatstring = preg_replace("/([^\\\])l/", "\\1".backslashit($dateweekday), $dateformatstring);
    71                 $dateformatstring = preg_replace("/([^\\\])M/", "\\1".backslashit(substr($datemonth, 0, 3)), $dateformatstring);
     71                $dateformatstring = preg_replace("/([^\\\])M/", "\\1".backslashit($datemonth_abbrev), $dateformatstring);
    7272                $dateformatstring = substr($dateformatstring, 1, strlen($dateformatstring)-1);
    7373        }
    7474        $j = @date($dateformatstring, $i);