Skip to content

Commit

Permalink
🐛 修复随机图的baseurl获取方式 #434
Browse files Browse the repository at this point in the history
  • Loading branch information
Licoy committed Aug 21, 2024
1 parent a47ec9b commit 377f030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ function get_post_images($_post = null)
if ($matches && $matches[1]) {
$res = $matches[1][0];
} else {
$res = get_stylesheet_directory_uri() . '/assets/img/random/' . mt_rand(1, 8) . '.jpg';
$res = get_template_directory_uri() . '/assets/img/random/' . mt_rand(1, 8) . '.jpg';
}
return $res;
}
Expand Down

0 comments on commit 377f030

Please sign in to comment.