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

WP Sanitize Accented Uploads

描述

WordPress plugin which removes all accented characters like åöä from future uploads and has easy wp-cli command for removing accents from current uploads and attachment links from database.
This helps tremendously with current and future migrations of your site and helps you to avoid strange filename encoding bugs.

Sanitize accents from Cyrillic, German, French, Polish, Spanish, Hungarian, Czech, Greek, Swedish.
This even removes rare but possible unicode NFD characters from files by using PHP Normalizer class. These usually happen if you have mounted uploads into your vagrant box in OS-X.

This plugin is wordpress multisite compatible.

More information in github page: https://github.com/devgeniem/wp-sanitize-accented-uploads

安裝

  1. Upload the plugin files to the /wp-content/plugins/wp-sanitize-accented-uploads directory, require it in composer $ composer require devgeniem/wp-sanitize-accented-uploads or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings->Plugin Name screen to configure the plugin

常見問題

Does this fix my uploads if my filenames have already been corrupted

No, sorry :(. You need to start using this before the problems arise in preventive way.

How to use wp-cli command

After the plugin installation and activation you can run $ wp sanitize all in terminal to sanitize all current files.

See $ wp sanitize --help for more.

評價

2016年10月18日
Really good plugin and does the job better than the others I tested. Supports the NextGEN Gallery too.
閱讀全部2個評價

貢獻者及開發者

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

貢獻者

將 WP Sanitize Accented Uploads 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.0.1

  • Replaces files which have accidentally turned into NFD too. First tries the filename found from DB and then tries NFD version of file name if it didn’t succeed.

1.0

  • Initial release which works in multisites too.