Broken links in localized wordpress
Opened this issue · 1 comments
kugaevsky commented
All month links href pointing to January if Wordpress has other than English locale. I think problem is in these lines of code
if ($archive[1] == $year) {
echo '<li class="archive-accordion-month"><a href="' .
// Get the archive link
get_month_link($year, date("m", strtotime($archive[0] . '-' . $year))) .
'">' . trim($archive[0]) . '</a></li>';
}
$archive
array has localized month name and strtotime
can't parse it.
kristjan07 commented
I have the same problem. Is there a way to fix this?