diff --git a/inc/theme-core.php b/inc/theme-core.php index 472d9d4..6d3797d 100644 --- a/inc/theme-core.php +++ b/inc/theme-core.php @@ -4,7 +4,7 @@ * 核心函数 * @author Seaton Jiang * @license MIT License - * @version 2021.08.19 + * @version 2021.08.20 */ // CDN 资源地址 @@ -234,7 +234,7 @@ function custom_upload_filter($file) $prdfix = kratos_option('g_renameother_prdfix', '') . '-'; - $img_mimes = array('jpg', 'jpeg', 'jpe', 'gif', 'png', 'bmp', 'webp', 'svg'); + $img_mimes = array('jpg', 'JPG', 'jpeg', 'JPEG', 'gif', 'GIF', 'png', 'PNG', 'bmp', 'BMP', 'webp', 'WEBP', 'svg', 'SVG'); $str = kratos_option('g_renameother_mime', ''); $arr = explode("|", $str); diff --git a/inc/theme-options.php b/inc/theme-options.php index 01f51a7..54f6f9e 100644 --- a/inc/theme-options.php +++ b/inc/theme-options.php @@ -4,7 +4,7 @@ * 主题选项 * @author Seaton Jiang * @license MIT License - * @version 2021.08.19 + * @version 2021.08.20 */ defined('ABSPATH') || exit; @@ -151,7 +151,7 @@ CSF::createSection($prefix, array( array( 'id' => 'g_renameimg', 'type' => 'switcher', - 'title' => __('自定义媒体文件名', 'kratos'), + 'title' => __('自定义图片类型的文件名', 'kratos'), 'subtitle' => __('启用/禁用 图片类型的文件名改为 MD5 值', 'kratos'), 'default' => false, ),