mirror of https://github.com/vtrois/kratos
fix: some image files cannot be effective
parent
c248897937
commit
cb7889c671
|
@ -4,7 +4,7 @@
|
||||||
* 核心函数
|
* 核心函数
|
||||||
* @author Seaton Jiang <seatonjiang@vtrois.com>
|
* @author Seaton Jiang <seatonjiang@vtrois.com>
|
||||||
* @license MIT License
|
* @license MIT License
|
||||||
* @version 2021.08.19
|
* @version 2021.08.20
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// CDN 资源地址
|
// CDN 资源地址
|
||||||
|
@ -234,7 +234,7 @@ function custom_upload_filter($file)
|
||||||
|
|
||||||
$prdfix = kratos_option('g_renameother_prdfix', '') . '-';
|
$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', '');
|
$str = kratos_option('g_renameother_mime', '');
|
||||||
$arr = explode("|", $str);
|
$arr = explode("|", $str);
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* 主题选项
|
* 主题选项
|
||||||
* @author Seaton Jiang <seatonjiang@vtrois.com>
|
* @author Seaton Jiang <seatonjiang@vtrois.com>
|
||||||
* @license MIT License
|
* @license MIT License
|
||||||
* @version 2021.08.19
|
* @version 2021.08.20
|
||||||
*/
|
*/
|
||||||
|
|
||||||
defined('ABSPATH') || exit;
|
defined('ABSPATH') || exit;
|
||||||
|
@ -151,7 +151,7 @@ CSF::createSection($prefix, array(
|
||||||
array(
|
array(
|
||||||
'id' => 'g_renameimg',
|
'id' => 'g_renameimg',
|
||||||
'type' => 'switcher',
|
'type' => 'switcher',
|
||||||
'title' => __('自定义媒体文件名', 'kratos'),
|
'title' => __('自定义图片类型的文件名', 'kratos'),
|
||||||
'subtitle' => __('启用/禁用 图片类型的文件名改为 MD5 值', 'kratos'),
|
'subtitle' => __('启用/禁用 图片类型的文件名改为 MD5 值', 'kratos'),
|
||||||
'default' => false,
|
'default' => false,
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue