[wp-trac] [WordPress Trac] #61227: wp_get_theme(): Add "License" and "License URI" header fields
WordPress Trac
noreply at wordpress.org
Thu May 16 09:44:17 UTC 2024
#61227: wp_get_theme(): Add "License" and "License URI" header fields
-------------------------+------------------------
Reporter: wildworks | Owner: (none)
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Themes | Version:
Severity: normal | Resolution: duplicate
Keywords: | Focuses:
-------------------------+------------------------
Changes (by SergeyBiryukov):
* status: new => closed
* resolution: => duplicate
* component: General => Themes
* milestone: Awaiting Review =>
Comment:
Hi there, thanks for the ticket!
This was previously suggested in #40034, let's continue the discussion
there.
> 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()`.
Looks like one other option would be to use the `extra_theme_headers`
filter, see comment:5:ticket:40034.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61227#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list