Update functions.php

This commit is contained in:
danpros 2023-12-17 14:08:34 +07:00
commit 5eebca5574

View file

@ -1522,7 +1522,7 @@ EOF;
echo '</li>';
echo '</ul>';
}
} elseif ($custom == 'month-year') {
} elseif ($custom === 'month-year') {
foreach ($by_year as $year => $months) {
$by_month = array_count_values($months);
# Sort the months
@ -1532,7 +1532,7 @@ EOF;
echo '<li class="item"><a href="' . site_url() . 'archive/' . $year . '-' . $month . '">' . $name . ' ' . $year .'</a> ('.$count.')</li>';
}
}
} elseif ($custom == 'year') {
} elseif ($custom === 'year') {
foreach ($by_year as $year => $months) {
$by_month = array_count_values($months);
# Sort the months