Skip to content

Commit a9bda8d

Browse files
authored
修复公告在php8.0下的问题
1 parent df9faa4 commit a9bda8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ function get_post_view($archive){
627627
function on_up_post($archive){
628628
$options = Typecho_Widget::widget('Widget_Options');
629629
$sticky = $options->sticky; //置顶的文章cid,按照排序输入, 请以半角逗号或空格分隔
630-
$top_text_html = '';
630+
$sticky_html = '';
631631
if(!empty($sticky)){
632632
$sticky_html = '<article id="top-article" class="post top-article">
633633
<div class="featured" title="置顶文章">

0 commit comments

Comments
 (0)