[wp-trac] [WordPress Trac] #40034: Add License and License URI as valid style.css headers to WP_Theme
WordPress Trac
noreply at wordpress.org
Wed Mar 8 06:37:07 UTC 2017
#40034: Add License and License URI as valid style.css headers to WP_Theme
----------------------------+------------------------------
Reporter: grapplerulrich | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
----------------------------+------------------------------
Comment (by grapplerulrich):
@dd32 Actually that does not work anymore. I am not sure it ever worked.
The reason is that there is a check in the beginning of `WP_Theme::get()`.
{{{#!php
if ( ! isset( $this->headers[ $header ] ) )
return false;
}}}
The fix for this ticket would be to add the following to `$file_headers`
{{{
'License' => 'License',
'LicenseURI' => 'License URI',
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40034#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list