Making WordPress.org

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#4707 closed enhancement (fixed)

Unclear definition of required plugin headers

Reported by: casiepa's profile 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
5 years 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
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].

#3 @Otto42
5 years 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.