[wp-trac] [WordPress Trac] #22316: Plugin Dependencies (Yet Another Plugin Dependencies Ticket)
WordPress Trac
noreply at wordpress.org
Sun Aug 8 16:33:28 UTC 2021
#22316: Plugin Dependencies (Yet Another Plugin Dependencies Ticket)
------------------------------------+---------------------
Reporter: Viper007Bond | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.9
Component: Plugins | Version: 3.4.2
Severity: normal | Resolution:
Keywords: dev-feedback has-patch | Focuses:
------------------------------------+---------------------
Comment (by TJNowell):
Noting that my comment updates were not carried over by PRBot.
Specifically
Even then, why not use a line in the plugin header?
{{{
<?php
/**
* Plugin Name: Foo
* Requires Plugins: Bar, Gutenberg
* Requires PHP: 7.2.0
* etc...
}}}
We already have code and precedents for this covering PHP and WordPress
versions, and we have a widespread syntax for version handling that
`composer` `npm` `yarn` `bundler` and many other package managers already
use, e.g. `gutenberg@~10.0`.
This also avoids the future issue of a `plugin.json` being introduced that
duplicates this further should the plugin information be moved out of the
PHP header, or issues is a JS tool uses the generic `dependencies.json`
filename.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/22316#comment:96>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list