Skip to content

Commit

Permalink
🍕 优化 静态文件源主题配置
Browse files Browse the repository at this point in the history
  • Loading branch information
bhaoo committed Jul 21, 2022
1 parent 09e05a4 commit 3f50d30
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,13 @@ function get_comment_prefix($mail){

// 静态文件源
function staticFiles($content, $type = 0, $isExternal = 0) {
if(!$isExternal){
$setting = Helper::options()->staticFiles;
}else{
$setting = 'jsdelivr';
$setting = Helper::options()->staticFiles;
if($isExternal){
if($setting == 'local' || $setting == 'cdn'){
$setting = Helper::options()->staticFiles;
}else{
$setting = 'jsdelivr';
}
}
switch($setting){
case 'jsdelivr':
Expand Down

0 comments on commit 3f50d30

Please sign in to comment.