
內容簡介
這個外掛會將上傳媒體檔案名稱轉換成小寫,這是透過 sanitize_file_name 的篩選器進行操作的。這個想法是從 Stack Overflow 上關於「在 WordPress 3.0 後台上傳時重新命名檔案」的帖子中得來的。
這個外掛適用於 WordPress 3.0.1+。當使用者上傳任何大小寫混合的媒體檔案(圖片、視頻、音頻)時,檔案名稱會被轉換成小寫。這實際上會在上傳時更改檔案名稱。
例如:
MOVIE-FILE.MOV > movie-file.mov
Movie-File.wmv > movie-file.wmv
ImAgEfILe.gif > imagefile.gif
imageFile.JPG > imagefile.jpg
ETC > etc
注意:WordPress會將檔案副檔名轉換成小寫。而這個外掛則是在檔案名稱上執行 strtolower 操作。
更多資訊
造訪Red Bridge Internet 站台以獲取更多有關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.
More Information
Visit the Red Bridge Internet site for more information about Make Filename Lowercase plugin.
