chore: change static resources

pull/475/head
Seaton Jiang 2022-01-28 16:40:20 +08:00
parent b5950420e6
commit 27bfddba24
No known key found for this signature in database
GPG Key ID: B79682F6FE8D30E3
1 changed files with 3 additions and 3 deletions

View File

@ -4,12 +4,12 @@
* 核心函数
* @author Seaton Jiang <hi@seatonjiang.com>
* @license GPL-3.0 License
* @version 2022.01.26
* @version 2022.01.28
*/
// CDN 资源地址
if (kratos_option('g_cdn', false)) {
$asset_path = 'https://cdn.jsdelivr.net/gh/seatonjiang/kratos@' . THEME_VERSION;
$asset_path = 'https://cdn.seatonjiang.com/kratos@' . THEME_VERSION;
} else {
$asset_path = get_template_directory_uri();
}
@ -191,7 +191,7 @@ add_filter('get_avatar_url', 'get_https_avatar');
// 主题更新检测
$myUpdateChecker = Puc_v4_Factory::buildUpdateChecker(
'https://cdn.jsdelivr.net/gh/seatonjiang/kratos/inc/update-checker/update.json',
'https://cdn.seatonjiang.com/kratos/update.json',
get_template_directory() . '/functions.php',
'Kratos'
);