Make WordPress Core

Changeset 45916


Ignore:
Timestamp:
08/30/2019 04:15:32 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Update plugin headers example in get_plugin_data() to clarify that Version is not a required field.

Props casiepa.
See #47110, #meta4707.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin.php

    r45611 r45916  
    1616 *
    1717 *     /*
    18  *     Plugin Name: Name of Plugin
    19  *     Plugin URI: Link to plugin information
    20  *     Description: Plugin Description
    21  *     Author: Plugin author's name
    22  *     Author URI: Link to the author's web site
    23  *     Version: Must be set in the plugin for WordPress 2.3+
     18 *     Plugin Name: Name of the plugin.
     19 *     Plugin URI: The home page of the plugin.
     20 *     Description: Plugin description.
     21 *     Author: Plugin author's name.
     22 *     Author URI: Link to the author's website.
     23 *     Version: Plugin version.
    2424 *     Text Domain: Optional. Unique identifier, should be same as the one used in
    25  *          load_plugin_textdomain()
     25 *          load_plugin_textdomain().
    2626 *     Domain Path: Optional. Only useful if the translations are located in a
    2727 *          folder above the plugin's base path. For example, if .mo files are
Note: See TracChangeset for help on using the changeset viewer.