Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for plugin header "Requires Plugins" to simplify blueprints #110

Open
j-falk opened this issue Jun 17, 2024 · 1 comment
Open

Support for plugin header "Requires Plugins" to simplify blueprints #110

j-falk opened this issue Jun 17, 2024 · 1 comment
Labels
enhancement New feature or request V1

Comments

@j-falk
Copy link

j-falk commented Jun 17, 2024

Would be great if the blueprints library would support the newly introduced plugin header "Requires Plugins" that was introduced in WP 6.5 (https://make.wordpress.org/core/2024/03/05/introducing-plugin-dependencies-in-wordpress-6-5/).

This would then simplify the blueprints needed to create a WP install for a plugin that require other plugins to work. Eg as for the example mentioned in the blog post, https://wordpress.org/plugins/wpsso-wc-metadata/, you would only have to have a blueprint like:

{
  "preferredVersions": {
    "php": "8.0",
    "wp": "latest"
  },
  "phpExtensionBundles": [
    "kitchen-sink"
  ],
  "plugins": [
    "wpsso-wc-metadata"
  ],
  "steps": [
    {
      "step": "login",
      "username": "admin",
      "password": "password"
    }
  ]
}

instead of:

{
  "preferredVersions": {
    "php": "8.0",
    "wp": "latest"
  },
  "phpExtensionBundles": [
    "kitchen-sink"
  ],
  "plugins": [
    "woocommerce",
    "wpsso",
    "wpsso-wc-metadata"
  ],
  "steps": [
    {
      "step": "login",
      "username": "admin",
      "password": "password"
    }
  ]
}
@adamziel adamziel added enhancement New feature or request V1 labels Jul 1, 2024
@adamziel
Copy link
Collaborator

adamziel commented Jul 1, 2024

This does sound useful! I'm thinking the schema will need an explicit switch to turn this behavior on/off, even if only for development when you want to provide your own versions of the required plugins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request V1
Projects
None yet
Development

No branches or pull requests

2 participants