WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Upgrading Plugins - How? (8 posts)

  1. WatchCount.com
    Member
    Posted 4 years ago #

    I hear that within the Manage Plugins screen, bloggers can see a notification that a certain plugin upgrade is available (I personally haven't had the opportunity to witness this yet). I think a 1-click upgrade link is also present. A few questions, though...

    1) Is the above true?

    2) Assuming I got it right, is this only possible with plugins that are hosted at the WordPress Plugin Directory/Repository? Can non- WP Repository plugins take advantage of this feature?

    3) Is there any documentation that explains what happens when a user clicks that easy Upgrade button? (Just simple file replacement?)

    4) If the above isn't true -- or for plugins not listed in the WP Plugin Dir/Repository -- what is the easiest way to get bloggers to upgrade plugin files? Having them "Add New -> Upload" a .zip file like their 1st install doesn't seem to work, as an error appears that the plugin is already installed.

    5) How do most plugin developers instruct their users to upgrade? File replacement via FTP?

    Thanks, anyone, for your clarifications!

    -WC

  2. WatchCount.com
    Member
    Posted 4 years ago #

    1) It turns out to be true, with 1-click upgrade as well. This is for plugins listed in the WP Plugin Directory.

    -WCC

  3. WatchCount.com
    Member
    Posted 3 years ago #

    3) I spoke with Mark Jaquith this past weekend at WordCamp about this. He said that it pretty much is file/folder replacement going on when a user upgrades a plugin. I think he went on to say that any old files in the plugin's folder would/may be deleted when the upgraded version is installed. In other words, complete file+folder replacement, if I understood him correctly. ... I would imagine this isn't a problem for most plugins, since they usually store data in the WP DB instead of local files.

  4. To answer the rest:

    2. No, the feature is directly linked to the official plugin directory.

    4. I believe the answer to #3 takes care of this.

    5. If their plugin isn't included in the official directory (therefore not available via the automated updater), they often instruct their users to download the new .zip archive from their site, go to Plugins/Add New in the admin panel, click the "Upload" link, and upload the new .zip archive.

  5. WatchCount.com
    Member
    Posted 3 years ago #

    Thanks for jumping in, James. Much appreciated.

    Seems just 1 issue remains here, regarding the above questions. I just confirmed in my own copy of WP 3.0.1 that the original file (attempted) replacement behavior still remains - when doing an "Add New -> Upload" with a .zip file of the plugin, and the plugin already exists (i.e. you want to upgrade it), an error message occurs instead:

    Destination folder already exists. .../wp-content/plugins/[plugin-folder-name-here]/
    
    Plugin install failed.

    So, it seems that aside from WP Plugin Directory upgrades, any plugin outside the Directory would probably need to be upgraded manually via FTP, or via a custom-coded upgrade module.

  6. So, it seems that aside from WP Plugin Directory upgrades, any plugin outside the Directory would probably need to be upgraded manually via FTP, or via a custom-coded upgrade module.

    Whoops, I forgot a step. :)

    Most plugin developers who don't use the official directory instruct their users to first deactivate and delete the plugin via the Plugins section in the admin panel (no FTP access required), then they can upload the new .zip archive via Plugins/Add New.

  7. WatchCount.com
    Member
    Posted 3 years ago #

    Gotcha. Thanks for the background on that, James!

    On a completely different note, I must say I'm really liking this new thread-subscription-by-email feature. It's been a while since I posted regularly here on the forums, and I'm so glad they finally added it. Hopefully it'll make the forums a more educational and interactive hangout.

  8. You're welcome!

Topic Closed

This topic has been closed to new replies.

About this Topic