From 561f4006e9b9f21b4147613c5019c7f2907373dd Mon Sep 17 00:00:00 2001 From: n0099 Date: Wed, 16 Nov 2022 02:26:06 +0800 Subject: [PATCH] fix typo which introduced in #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 @@ function remove_default_images($sizes) 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)