WordPress.org

Making WordPress.org

Opened 3 months ago

Closed 3 months ago

Last modified 3 months ago

#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)

#1 @Otto42
3 months ago

  • Resolution set to invalid
  • Status changed from new to closed

The plugin version is not a required field. Plugins will activate and run just fine without it.

#2 in reply to: ↑ description @SergeyBiryukov
3 months 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].

#3 @Otto42
3 months ago

  • Resolution changed from invalid to fixed

Changing to fixed as the change to the core docs makes more sense.

Note: See TracTickets for help on using tickets.