Support » Everything else WordPress » Should update be available for a renamed plugin?

  • bobbingwide


    While trying to perform some problem determination, attempting to reproduce a problem someone had reported, I renamed a plugin’s folder so that I could search for and install the latest version of the plugin from

    My intention was to have both the existing and previous versions available on the install.

    I was surprised, that rather than being offered Install Now for the correctly named folder, the renamed version was found and I was offered Activate.

    Shouldn’t the plugin-install logic care more about the Plugin Name: in the plugin’s main file than the plugin folder name?

    Had I chosen to rename my plugin to that of an existing plugin and then searched for that plugin I might have been offered Activate.

    Attempting to perform Activate could lead to an unrecoverable fatal error.

    When I say “could” I actually mean “did” in the scenario where I renamed my oik-privacy-policy folder to oik-css.

Viewing 1 replies (of 1 total)
  • Moderator Steve Stern


    WordPresser, Third Class

    The plugin update comes from the info in the top its main PHP file, not from the folder name. Changing the folder will deactivate the plugin because WP ties folders and plugins together to determine what’s active, but updates come from the PHP file.

    If you want to keep around an old version (a bad idea, IMHO), modify the version number (in the PHP file) of the one you want to keep static to something like 10000.0.

Viewing 1 replies (of 1 total)
  • The topic ‘Should update be available for a renamed plugin?’ is closed to new replies.