[wp-trac] [WordPress Trac] #61227: wp_get_theme(): Add "License" and "License URI" header fields

WordPress Trac noreply at wordpress.org
Thu May 16 04:10:16 UTC 2024


#61227: wp_get_theme():  Add "License" and "License URI" header fields
-------------------------+-----------------------------
 Reporter:  wildworks    |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 The `License` and `License URI` fields are required fields when submitting
 a theme to the theme directory, but these two fields cannot be retrieved
 with `wp_get_theme()`. I thought it would be a good idea to include these
 two fields as well as the other required fields.

 The reason behind submitting this ticket is related to the Create Block
 Thene plugin PR (https://github.com/WordPress/create-block-
 theme/pull/634). This plugin parses the active theme's `style.css` and
 copies all header fields to the overwritten or cloned theme. Currently,
 these two fields cannot be obtained using `wp_get_theme()`, so the only
 option is to use regular expressions or use `get_file_data()`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61227>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list