Cannot rename filenames with empty post title field using filter
-
Hi!
First of all, thanks for a great plugin. This is my second time using it and it works great (besides encoding issues =P).
I wanted to rename filenames that contained accents ONLY. So i used a filter of yours to target these filenames (thank you for giving us this opportunity) which works great.
But! I have some filenames where the post titles are empty and because of this, these filenames cannot be renamed. I made it work by changing two lines in the code so that we check both post title and the custom filename (from the filter) if they are empty.
I don’t know if this is a feature you would like but it helped in my situation where a filename existed, but just not in the post title field.
Let me know if you think this is something you’d be willing to implement in the core.
/ Panos
- The topic ‘Cannot rename filenames with empty post title field using filter’ is closed to new replies.