该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Uploaded file name sanitizer

描述

Replaces uploaded file name chars which are not in \’a-z\’, \’0-9\’ and \’ \'(space) range. Helpful when dealing with non-latin letters. Especially when dealing with urls.

安装

  1. Upload the plugin files to the /wp-content/plugins/uploaded-file-name-sanitizer directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the \’Plugins\’ screen in WordPress
  3. Use the Settings->’Uploaded file name sanitizer’ screen to configure the plugin

评价

2016 年 12 月 20 日
It works just fine and prevents problems with invalid file names under some server configurations, which will lead to inaccessible images. I did replace the plugin's own sanitization with a custom function though, in order to not just replace characters that are out of range with hiphens, but to also transform the file name into lowercase, replace characters with diacritics by their simple forms and join sequences of hiphens into a single character.
阅读所有1条评价

贡献者及开发者

“Uploaded file name sanitizer” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

Initial release