fix: wrong filter name (#345)

pull/568/head
n0099 2022-11-21 19:47:41 +08:00 committed by GitHub
parent 5ac0234c68
commit a9979c4fa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)