Skip to content

Fail plugin activation if CMB2 is not found #72

@jazzsequence

Description

@jazzsequence

Currently, if you use Composer to install Games Collector, CMB2 is installed as a plugin. Because it's a required library of the plugin and since I don't bundle it in the zip file or anything, activation fatals the site because CMB2 is not active.

The workaround is to activate CMB2 first (or install as an mu-plugin), but the plugin should handle this.

Proposed solution

  1. Deactivate the plugin if CMB2 is not active
  2. Use the new plugin dependencies feature to require that CMB2 is active

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions