[wp-trac] [WordPress Trac] #30324: get_plugin_data does not return License

WordPress Trac noreply at wordpress.org
Wed Dec 16 23:25:42 UTC 2015


#30324: get_plugin_data does not return License
--------------------------+------------------------------
 Reporter:  jkmassel      |       Owner:  chriscct7
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Plugins       |     Version:  4.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------

Comment (by dd32):

 The Readme Validator suggests the License field for the `readme.txt` file,
 It does this as it's designed to be used by the WordPress.org plugins
 directory (Even though it's not surfaced, we like to ensure that plugin
 authors are aware of what license they're submitting a plugin under).

 `get_plugin_data()` is designed to get the `plugin.php` file headers, of
 which, `License` is not one of. WordPress hasn't used that field and has
 no use for it.

 It's the same as WordPress not pulling out the `Contributors` or `Requires
 at least` fields which the readme supports.

 Personally, I don't see the need for this change.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30324#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list