Update functions.php

This commit is contained in:
danpros 2025-11-01 15:20:56 +07:00
commit 07c49547f6

View file

@ -1754,7 +1754,8 @@ function popular_posts($custom = null, $count = null)
$arr = explode('post_', $key);
if (isset($arr[1])) {
foreach($posts_list as $in => $f) {
if (strpos($f['basename'], $arr[1] . '.md') !== false ) {
$ex = explode('_', $f['basename']);
if ($ex[2] == $arr[1] . '.md') {
$tmp[] = $f;
if ($i++ >= $count)
break;