Skip to content

Commit

Permalink
✨ 优化设置中网站Title为空时使用WP原生配置 #236
Browse files Browse the repository at this point in the history
  • Loading branch information
Licoy committed Jan 11, 2023
1 parent 363d598 commit 52272a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion inc/fun/opt.php
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,11 @@ function pk_compatible_githuber_md_katex($good_protocol_url, $original_url, $_co
//获取网站标题
function pk_get_web_title()
{
return pk_get_option('web_title', get_bloginfo('name'));
$title = pk_get_option('web_title');
if(empty($title)){
$title = get_bloginfo('name');
}
return $title;
}

// 获取链接的target属性
Expand Down

0 comments on commit 52272a8

Please sign in to comment.