WordPress.org

Ready to get started?Download WordPress

Forums

Plugin Dependencies
Suggestion (4 posts)

  1. Dougal Campbell
    Member
    Posted 2 years ago #

    Great to see somebody tackle this! Drupal uses module dependencies to good effect, and I've always thought it would be a good idea for WordPress, too.

    Suggestion: you currently deactivate the child plugin if a parent dependency is deactivated. In Drupal, they don't let you deactivate a parent, until all of the dependent children are first deactivated. Could that be handled, and if so, what do you think about doing it that way? It seems a little more robust, to me.

    http://wordpress.org/extend/plugins/plugin-dependencies/

  2. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    I am not familiar with Drupal, but I am familiar with Debian's apt-get system, which I think is fantastic.

    When you attempt to uninstall a package, it will list the dependent packages that will also be uninstalled.

    I think that's what we should do here as well: show a confirmation window with all the child plugins that would be deactivated.

  3. Ben Huson
    Member
    Posted 2 years ago #

    One thing to note re deactivation is that you may have several plugins active that depend on another plugin. In that case you would not want to deactivate the dependent plugin as it would still be needed.

    I haven't tested this plugin yet (although I am intending to) so forgive me if it already handles that scenario.

    Also as another suggestion, if plugin dependancies could be applied to themes too that might hopefully provide an alternative solution to themes which package themselves with plugins.

  4. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    The main reason I hesitated to allow themes to specify dependencies is that they would show up in style.css, but now that the dependencies are just plugin names, I'm ok with that.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic