Make Filename Lowercase

説明

Sets uploaded media filename to lowercase as filter on sanitize_file_name. Based on post at Stack Overflow asking if there is a way to “Rename files during upload within WordPress 3.0 backend”.

Created for WordPress 3.0.1+ which saves any uploaded media filename (Image, Video, Audio) as lowercase. This effectively changes the name of the file at upload if a user were to upload a file with any uppercase characters.

For instance:

  • MOVIE-FILE.MOV > movie-file.mov
  • Movie-File.wmv > movie-file.wmv
  • ImAgEfILe.gif > imagefile.gif
  • imageFile.JPG > imagefile.jpg
  • ETC > etc

Note: WordPress sets file extension to lowercase. This plugin does a strtolower on the filename.

詳細情報

Visit the Red Bridge Internet site for more information about Make Filename Lowercase plugin.

スクリーンショット

  • Upload media filename of mixed case (in this case, the file MIXED-cAsE-filename.JPG).
  • Filename changed to lowercase (mixed-case-filename.jpg) preserving the case for Title.
  • An image detail view from the Media Library showing the new File name as lowercase.

インストール

  1. Download the plugin and unzip it.
  2. Upload the folder /make-filename-lowercase to your /wp-content/plugins/ folder.
  3. Activate the plugin from your WordPress admin panel.
  4. Installation finished.

FAQ

Why was this plugin created?

This plugin evolved from a client requirement that all uploaded media filenames contain no uppercase characters.

Why did you release this plugin?

It was useful to me and I wanted to work through the process of releasing a WordPress plugin.

Why shouldn’t this just be added to a theme’s functions.php file?

Upgradeability, portability, backwards compatibility, and other *abilities. If for some reason this function were in need of customization due to a WordPress version upgrade, the plugin will be centrally responsible for releasing the fix as opposed to updating the theme(s).

評価

このプラグインにはレビューがありません。

貢献者と開発者

Make Filename Lowercase はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Make Filename Lowercase” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

1.0.2

  • moved plugin screenshots to assets directory
  • added cool header banner for plugin repository

1.0.1

  • Tested for 3.3.1

1.0.0

  • プラグインをリリース