Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Matt

    (@syntax53)

    After removing the plugin and deciding not to use it anymore I tried to maybe use it just without the auto-rename turned on. When I went to test changing the title on the “Edit Media” page it still renamed the file but seems like it did rename it on the post this time. I turned the auto-rename-on-save back on and it still worked.

    Unfortunately this plugin ended up causing about 20 broken links due to file names changing and not being updated so I have to stop using it.

    Plugin Author Jordy Meow

    (@tigroumeow)

    Should I change the option to rename the file in posts to true by default? I think it’s off now.

    Thread Starter Matt

    (@syntax53)

    well one issue is it seems like it automatically renames the file and posts when on the edit media screen no matter what the setting is. It should do neither or both if option is set. However, I think the real issue is at some point with some operation a file can get renamed and the links to it on posts do not get updated. I don’t see why you would ever want to rename a file without also searching and updating the posts involved.

    Plugin Author Jordy Meow

    (@tigroumeow)

    About the option, I marked this as a bug and will take of it soon.

    Actually many plugins rename the files without modifying any posts or anything else. They do this and only this. The reason si that modifying all the posts, pages, metadata is very tricky: depending on your install and the plugins you are using it is virtually impossible to cover all the cases. When I did this plugin I knew I would play with fire (this is why here are warnings everywhere) but I wanted to give it a try, make it work for my basic installs and common plugins and it works. Now I am trying to improve it but it will never be perfect, that’s impossible. However, not many attempted to make a similar plugin. To be honest, now, when I am making a new app or plugin, I prefer to stay on the safe side – less issues, more happy and positive reviews. I have another “dangerous” plugin on the repository called “File Media Cleaner”, that one is a real challenge as well.

    Thread Starter Matt

    (@syntax53)

    Yes I realize it’s tricky and also noticed yours was one of the few if not only (recent) one to attempt it. I appreciate the effort.

    And yes I use your media cleaner as well. Haven’t had any issues with that except it saying a file wasn’t in use when it was (and linked normally in a post). That has only happened once or twice though. I am new to wordpress (but experienced php coder) and in the process of migrating an entire site to it.

    Plugin Author Jordy Meow

    (@tigroumeow)

    Those two plugins are quite similar since they do something tricky and dangerous but it now work quite good. Please have a look at the code since you are a developer, if you have issues you might be able to help me fix them 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘File rename issue – not updating posts’ is closed to new replies.