Title: Updating private plugin changes plugin folder name
Last modified: August 31, 2016

---

# Updating private plugin changes plugin folder name

 *  Resolved [Ilan Firsov](https://wordpress.org/support/users/ilanf/)
 * (@ilanf)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/updating-private-plugin-changes-plugin-folder-name/)
 * I have a private with my own update server, up until recently all has been great
   and I could update it via WordPress dashboard, but now after updating WordPress
   changes the plugin folder name.
    Take [this simple plugin](http://pastebin.com/zmmrUt22)
   as an example (all it does is to trigger an update for itself) I run the update,
   it does everything and after it’s done I find the folder name for the plugin 
   is _private-plugin-X2HS23_ instead of just _private-plugin_. It doesn’t look 
   like something is wrong with the data I inject into the update transient since
   other plugins from the WordPress repository look the same. for example here is
   Akismet:
 *     ```
       [akismet/akismet.php] => stdClass Object
                       (
                           [id] => 15
                           [slug] => akismet
                           [plugin] => akismet/akismet.php
                           [new_version] => 3.1.11
                           [url] => https://wordpress.org/plugins/akismet/
                           [package] => https://downloads.wordpress.org/plugin/akismet.3.1.11.zip
                           [tested] => 4.5.2
                           [compatibility] => stdClass Object
                               (
                                   [scalar] => stdClass Object
                                       (
                                           [scalar] =>
                                       )
   
                               )
   
                       )
       ```
   
 * Any ideas what might have changed in the recent WordPress versions that could
   cause something like that? I think it started since 4.5

Viewing 1 replies (of 1 total)

 *  Thread Starter [Ilan Firsov](https://wordpress.org/support/users/ilanf/)
 * (@ilanf)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/updating-private-plugin-changes-plugin-folder-name/#post-7437286)
 * Just found a solution if someone finds this post later down the line.
    Apparently
   it’s not something that changed in WordPress but rather in how **I** packaged
   the plugin.
 * When packaging the plugin make sure inside the zip archive you have a folder,
   not just the plugin files. It looks like when there are files inside the archive
   WordPress leaves the temporary folder as is, but if you have only one folder 
   inside (which contains the plugin files) then WordPress will move that folder
   up one level to the wp-content/plugins directory and remove the temporary folder.

Viewing 1 replies (of 1 total)

The topic ‘Updating private plugin changes plugin folder name’ is closed to new 
replies.

## Tags

 * [private](https://wordpress.org/support/topic-tag/private/)
 * [update](https://wordpress.org/support/topic-tag/update/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 1 participant
 * Last reply from: [Ilan Firsov](https://wordpress.org/support/users/ilanf/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/updating-private-plugin-changes-plugin-folder-name/#post-7437286)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
