這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

BEA – Sanitize Filename

描述

This plugin allows you to sanitize files on upload, which is pretty handy. It means all punctuation and accents from the filename of uploaded files will be removed.

Features

  • All accented letters will be converted to same letters without accent
  • Special characters will be deleted
  • Underscores will be replaced by hyphens

Warning For Mac Owners

On MAC, you can also create an accented character with the combination of ` and the wanted letter. This has the effect to create a character with a special filename system encoding format which is not sanitized. An issue is already open about this.

Who ?

Created by Be API, the French WordPress leader agency since 2009. Based in Paris, we are more than 30 people and always hiring some fun and talented guys. So we will be pleased to work with you.

This plugin is only maintained, which means we do not guarantee some free support. Consider reporting an issue and be patient.

To facilitate the process of submitting an issue and quicker answer, we only use Github, so don’t use WP.Org support, it will not be considered.

安裝

Requirements

WordPress

  • Download and install using the built-in WordPress plugin installer.
  • Site activate in the “Plugins” area of the admin.
  • Nothing more, this plugin is ready to use !

常見問題

Will this plugin affect existing files ?

No.

Only after plugin activation, while a file is uploaded to the library. However, inf the future a tool will be available to sanitize old files.

Can I use into a multisite ?

Yes.

You just need to activate on each site.

評價

2018年2月7日 1 reply
Il est intégré à tous mes projets depuis plusieurs mois, content qu'il soit maintenant sur le repo officiel !
2018年2月7日 1 reply
This script is missing from the core
2018年2月6日 1 reply
Hi, This plugin is an absolutely must have. It will correct at the upload each file name that are not respecting good practices. I don't understand why it's not a part of WordPress. Good job guys!
閱讀全部4個評價

貢獻者及開發者

“BEA – Sanitize Filename” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 BEA – Sanitize Filename 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

2.0.7 – 20 Sept 2022

  • Non Latin characters in filename are handled

2.0.6 – 05 Oct 2018

  • #8 : Add More accentuated characters

2.0.5 – 12 Feb 2018

  • i18n

2.0.0 – 02 Feb 2018

  • Go to WP

1.0.4 – 19 Dec 2017

  • Branding refactor

1.0.3 – 19 Dec 2017

  • Fix some PHP notices

1.0.2 – 08 Sept 2017

  • Update sanitize_file_name_chars list

1.0.1 – 05 Aug 2017

  • Add readme
  • Replace underscore by hyphen
  • Only lowercase

1.0.0 – 27 Nov 2015

  • Initial