Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

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.

share|improve this answer
    
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 Jan 7 '12 at 15:22
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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