Skip to content

Commit

Permalink
修复公告在php8.0下的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
dingzd1995 authored Apr 6, 2024
1 parent df9faa4 commit a9bda8d
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 @@ -627,7 +627,7 @@ function get_post_view($archive){
function on_up_post($archive){
$options = Typecho_Widget::widget('Widget_Options');
$sticky = $options->sticky; //置顶的文章cid,按照排序输入, 请以半角逗号或空格分隔
$top_text_html = '';
$sticky_html = '';
if(!empty($sticky)){
$sticky_html = '<article id="top-article" class="post top-article">
<div class="featured" title="置顶文章">
Expand Down

0 comments on commit a9bda8d

Please sign in to comment.