Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom_upload_filter未注册wp_handle_sideload_prefilter导致文件名重命名功能无法与通过url上传图片类插件兼容 #345

Closed
n0099 opened this issue Mar 10, 2021 · 0 comments · Fixed by #346

Comments

@n0099
Copy link
Contributor

n0099 commented Mar 10, 2021

问题描述
rt

建议在https://github.com/vtrois/kratos/blob/d6a4ecf5b70e8073d0b6a19312bb5a00d407cc1a/inc/theme-core.php#L212-L215
添加add_filter('wp_handle_sideload_prefilter', 'custom_upload_perfilter');

环境信息
Kratos 版本:3.2.7
WordPress 版本:5.7
User Agent 信息:Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4441.3 Safari/537.36

复现步奏

  1. 安装插件Upload Media By URL
  2. 通过url上传图片
  3. 图片文件名不会被重命名
seatonjiang pushed a commit that referenced this issue Mar 11, 2021
* fix: action comment_form_after should be called #341

* fix: add custom_upload_perfilter on filter wp_handle_sideload_prefilter #345
seatonjiang pushed a commit that referenced this issue Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant