Hi, Katsumi.
> Removing file extensions is to replace each thumbnail.
I see, but I think it is not good.
I tried this:
* All media items, January 2010, / -> [Filter]
* Result
* 1.jpg
* Select file, set Folder to 2010/01, Move to selected folder -> [Apply]
Result:
----
before (files)
----
date path
2010/01 /1.jpg
2010/01 /1-150x150.jpg
20xx/xx /11.jpg
20xx/xx /11-150x150.jpg
20xx/xx /111.jpg
20xx/xx /111-150x150.jpg
----
before (post contents)
----
/1.jpg
/1-150x150.jpg
/11.jpg
/11-150x150.jpg
/111.jpg
/111-150x150.jpg
----
after (files)
----
date path
2010/01 /2010/01/1.jpg
2010/01 /2010/01/1-150x150.jpg
20xx/xx /11.jpg
20xx/xx /11-150x150.jpg
20xx/xx /111.jpg
20xx/xx /111-150x150.jpg
----
after (post contents)
----
OK /2010/01/1.jpg
OK /2010/01/1-150x150.jpg
NG /2010/01/11.jpg
NG /2010/01/11-150x150.jpg
NG /2010/01/111.jpg
NG /2010/01/111-150x150.jpg
This plugin get filenames of thumbnail by wp_get_attachment_metadata() function, then use those filenames to move thumbnail files.
So files correctly move.
I think you can use sama filnames to replace post contents. ($current_thumb_file, $target_thumb_file php vars)
Then no need to remove extensions for replace post contents.
Thanks.