From 377f030de78774cbbebd02a4bc9f0d30b76cd30a Mon Sep 17 00:00:00 2001 From: licoy Date: Wed, 21 Aug 2024 09:50:12 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E9=9A=8F=E6=9C=BA?= =?UTF-8?q?=E5=9B=BE=E7=9A=84baseurl=E8=8E=B7=E5=8F=96=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=20#434?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index df6e47f6..75ff4cf0 100755 --- a/functions.php +++ b/functions.php @@ -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; }