Bad renaming when I updated from http:www/website/wp-admin/plugins.php
Hi,
When I update from http:www/website/wp-admin/plugins.php the plugin folder name is rename like username-pluginrepository-0b6ff025db8a4578bea1fdf10ff80c7c35da5efe and if I'll update from http://website//wp-admin/update-core.php the plugin folder is good and doesn't change. What can I do for not change the plugin folder name when I update it?
Thanks a lot for your answer.
Best regards,
Salah.
That's a known issue with previous releases (it was caused by changes in WP core), but it should be fixed in the current master branch. Try that.
Thanks for your answer! What should I try?
It works! :)
All right, that's good to hear. I'll close the issue for now; feel free to re-open it if the same problem happens again.
In fact, I have the same problem if I'll update from Manage WP.
The cause is probably the same. To know how to rename the folder, the update checker needs to know which plugin is being updated. ManageWP probably uses a custom updater or a custom updater skin, and the update checker doesn't know how to get the plugin file name from that.
I don't have a good place to test this, but 70011dbb524cb250884ba44b361dcf31e5279247 might fix that. Try the latest master again (i.e. re-download it).
Hi Yahnis,
It's working with Manage WP!
Thanks a lot!
All right, I'll package this patch as a proper release later today.
Cool! Does your plugin works with themes?
This one doesn't, but I have another library that does: http://w-shadow.com/blog/2011/06/02/automatic-updates-for-commercial-themes/
It's a bit less flexible that this one, however.
Is it work with private Github repository?
No, that library doesn't support GitHub-based updates.
I'm using the 2.2 release and WordPress 4.4.2 and the issue of not renaming seems to be back. When updating the plugin from the plugins screen (through ajax), it does not change the directory name back to the plugins directory name, resulting in a 'This plugin is disabled because the plugin file cannot be found' message.
Try the master branch, it has a couple of recent bug fixes.
If that doesn't work, could you tell me a bit more about your setup? For example, are you using the JSON metadata format, or loading updates from GitHub? What does your .zip directory structure look like?
The master branch is working indeed. Can you give an estimate when v3.0 arrives? Thnx!
Soon-ish. 3.0 is pretty stable and I'll probably release it as-is. Just need to write up the release notes.
Hurray! Thanks for your hard work!