#4707 closed enhancement (fixed)
Unclear definition of required plugin headers
Reported by: | casiepa | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Plugin Directory | Keywords: | |
Cc: |
Description
According to the documentation on https://developer.wordpress.org/plugins/plugin-basics/header-requirements/#header-fields only the 'Plugin name' header is required.
But the documentation of the parsing of the plugin at https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/plugin.php seems to indicate that e.g. also version would be required: 'Version: Must be set in the plugin for WordPress 2.3+'
Can the documentation be updated on what are the really required fields for the plugin header?
Change History (3)
#2
in reply to:
↑ description
@
5 years ago
Replying to casiepa:
But the documentation of the parsing of the plugin at https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/plugin.php seems to indicate that e.g. also version would be required: 'Version: Must be set in the plugin for WordPress 2.3+'
Thanks for bringing this up, I've updated the get_plugin_data()
description in [WP45916].
The plugin version is not a required field. Plugins will activate and run just fine without it.