mirror of https://github.com/vtrois/kratos
chore: modify the default CDN
parent
fb541de21b
commit
44167a1fc6
|
@ -3,7 +3,7 @@
|
|||
* 核心函数
|
||||
* @author Seaton Jiang <seaton@vtrois.com>
|
||||
* @license MIT License
|
||||
* @version 2020.04.12
|
||||
* @version 2020.06.25
|
||||
*/
|
||||
|
||||
if (kratos_option('g_cdn', false)) {
|
||||
|
@ -11,7 +11,7 @@ if (kratos_option('g_cdn', false)) {
|
|||
'maocloud' => 'https://n3.cdn.vtrois.com/kratos/' . THEME_VERSION,
|
||||
'jsdelivr' => 'https://cdn.jsdelivr.net/gh/vtrois/kratos@' . THEME_VERSION,
|
||||
);
|
||||
$asset_path = $cdn_array[kratos_option('g_cdn_n3', 'maocloud')];
|
||||
$asset_path = $cdn_array[kratos_option('g_cdn_n3', 'jsdelivr')];
|
||||
} else {
|
||||
$asset_path = get_template_directory_uri();
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* 主题选项
|
||||
* @author Seaton Jiang <seaton@vtrois.com>
|
||||
* @license MIT License
|
||||
* @version 2020.04.12
|
||||
* @version 2020.06.25
|
||||
*/
|
||||
|
||||
function getrobots()
|
||||
|
@ -104,7 +104,7 @@ function kratos_options()
|
|||
$options[] = array(
|
||||
'desc' => __('选择 CDN 加速节点', 'kratos'),
|
||||
'id' => 'g_cdn_n3',
|
||||
'std' => 'maocloud',
|
||||
'std' => 'jsdelivr',
|
||||
'type' => 'select',
|
||||
'class' => 'hidden',
|
||||
'options' => $cdn_array,
|
||||
|
|
Loading…
Reference in New Issue