Title: WordPress Automatic Plugin Update Renames Plugin Directory
Last modified: November 14, 2019

---

# WordPress Automatic Plugin Update Renames Plugin Directory

 *  [charltonit](https://wordpress.org/support/users/charltonit/)
 * (@charltonit)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/wordpress-automatic-plugin-update-renames-plugin-directory/)
 * So I have hooked the wordpress plugin auto updated to effectively redirect my
   plugin to autoupdate from my own site rather than wordpress.com.
 * The updating process works seemlessly aside from one wierd hitch – the wordpress
   updater downloads the my_plugin.zip file from my server, saves it in a temp directory
   as my_plugin-3sd123.tmp (where the random string is generated by the wp updater
   to avoid file conflicts) and unzips it to wp-content/upgrades which leaves a 
   directory my_plugin-3sd123 in updates and then it copies this directory to plugins
   and removes the old directory BUT never renames the new one to the old plugin
   slug.. Should I be writing my plugins to expect this? because I dont see it happening
   with other plugin updates?
    -  This topic was modified 6 years, 6 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Moved to Fixing WordPress, this is not a Developing with WordPress
      topic
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwordpress-automatic-plugin-update-renames-plugin-directory%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/wordpress-automatic-plugin-update-renames-plugin-directory/#post-12128265)
 * Is it in this code?
    [https://developer.wordpress.org/reference/classes/plugin_upgrader/](https://developer.wordpress.org/reference/classes/plugin_upgrader/)

Viewing 1 replies (of 1 total)

The topic ‘WordPress Automatic Plugin Update Renames Plugin Directory’ is closed
to new replies.

## Tags

 * [plugin updates](https://wordpress.org/support/topic-tag/plugin-updates/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Joy](https://wordpress.org/support/users/joyously/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/wordpress-automatic-plugin-update-renames-plugin-directory/#post-12128265)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
