From a9979c4fa43c21c37df8a8472422b6f5a409dec6 Mon Sep 17 00:00:00 2001 From: n0099 Date: Mon, 21 Nov 2022 19:47:41 +0800 Subject: [PATCH] fix: wrong filter name (#345) --- inc/theme-core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/theme-core.php b/inc/theme-core.php index bf8986f..7a64b43 100644 --- a/inc/theme-core.php +++ b/inc/theme-core.php @@ -248,7 +248,7 @@ if (kratos_option('g_removeimgsize', false)) { add_filter('big_image_size_threshold', '__return_false'); // 媒体文件使用 md5 值重命名,指定文件前缀 -add_filter('wp_handle_sideload_prefilter', 'custom_upload_perfilter'); +add_filter('wp_handle_sideload_prefilter', 'custom_upload_filter'); add_filter('wp_handle_upload_prefilter', 'custom_upload_filter'); function custom_upload_filter($file)