fix: some image files cannot be effective

pull/409/head^2
Seaton Jiang 2021-08-20 07:39:41 +08:00
parent c248897937
commit cb7889c671
No known key found for this signature in database
GPG Key ID: 0E05070D261ACFEA
2 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@
* 核心函数
* @author Seaton Jiang <seatonjiang@vtrois.com>
* @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);

View File

@ -4,7 +4,7 @@
* 主题选项
* @author Seaton Jiang <seatonjiang@vtrois.com>
* @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,
),