diff --git a/inc/theme-core.php b/inc/theme-core.php index 2526b1e..1de7227 100644 --- a/inc/theme-core.php +++ b/inc/theme-core.php @@ -3,7 +3,7 @@ * 核心函数 * @author Seaton Jiang * @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(); } diff --git a/inc/theme-options.php b/inc/theme-options.php index 0e3b849..c2f1e1b 100644 --- a/inc/theme-options.php +++ b/inc/theme-options.php @@ -3,7 +3,7 @@ * 主题选项 * @author Seaton Jiang * @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,