0

I am busy writing a plugin (called supermail), so I install, activate, deactivate, and delete the plugin fairly often. However, quite often one or more of these operations doesn't go smoothly, and I just manually delete the files. When I install the plugin again by uploading a zip file, called supermail.zip, I find the plugin installed under a directory called plugins/supermail1. I assume this is because WP still has a record of the plugin, somewhere in the DB, or even maybe just in session. Short of restarting Apache, is there anything I can do, both in my plugin code to help ensure this doesn't happen, and as administrator, to result the issue when it does happen?

1 Answer 1

1

wordpress plugin installer don't rename dir ever. It could be renamed in your zip. When directory already exists wordpress plugin installer just show the error plugin already exists.

1
  • It doesn't rename the directory, it assigns it the 'new' name from the start, even when no directory already exists. This is what my question is asking about. And, it is always only the original name in my zip. I've seen this enough to know what is happening.
    – ProfK
    Commented Jan 7, 2012 at 15:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.