Required plugin in header issue
-
I have a number of custom plugins that are not published in the WordPress.org plugin directory. These have “Required by” and “Requires” in the plugin headers that work correctly as far as I can see.
With the release of PCP 2.1.0 a new warning is showing.
Warning
– plugin_header_requires_plugins_not_in_directory
– The plugin declares “xxxx-xxx” as a required plugin, but it could not be found in the WordPress.org plugin directoryWhilst the statement is technicaly true it is misleading as it implies that there is an issue with the “Required by” action.
- Instead of “plugin_header_requires_plugins_not_in_directory” it would be better to report a new Warning Code of “plugin-not-found-in-WordPress.org-plugin-directory” for ALL custom plugins. The message could contain details such as “The plugin header declares “xxxx-xxx” as a required plugin”
- If the required plugin is not found within the WordPress server being tested then a Error Code of “plugin_header_requires_plugin_not_found” would be better to indicate an actual problem.
Maybe I have misunderstood what I am seeing and I do need to fix something – so please let me know.
You must be logged in to reply to this topic.