Skip to content

Commit

Permalink
修复置顶文章不显示问题
Browse files Browse the repository at this point in the history
Signed-off-by: Kent Liao <2964556627@qq.com>
  • Loading branch information
liaocp666 committed Mar 7, 2023
1 parent 5b1a6b2 commit d8db59b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions inc/core/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ function getLeftSidebarMenu()
function getStickyPost(): array
{
$sticky_text = getOptions()->stickyPost;
if (empty($sticky_text)) {
return [];
}
$sticky_cids = explode('||', strtr($sticky_text, ' ', ''));
return $sticky_cids;
}
Expand Down

0 comments on commit d8db59b

Please sign in to comment.