From 35806ea2fba0ff52c3d92c2491722eefa9de5164 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=AA=E5=AD=90?= Date: Fri, 11 Jul 2025 19:16:34 +0800 Subject: [PATCH] 1.2.0 --- functions.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/functions.php b/functions.php index c929f01..4ee3f25 100644 --- a/functions.php +++ b/functions.php @@ -997,10 +997,10 @@ function get_article_info($atts) { return '未找到文章'; } // 获取文章对象,避免permalink警告 - $widget = Typecho_Widget::widget('Widget_Archive@article_quote_' . $post['cid'], 'cid=' . $post['cid'], null, false); - $permalink = $widget->permalink; - $title = htmlspecialchars($widget->title); - $summary = get_article_summary($widget); + $post = Typecho_Widget::widget('Widget_Abstract_Contents')->push($post); + $permalink = $post['permalink']; + $title = htmlspecialchars($post['title']); + $summary = get_article_summary($post); $output = '
'; $output .= '
';