[wp-trac] [WordPress Trac] #8964: Allow adding headers to get_plugin_data
WordPress Trac
wp-trac at lists.automattic.com
Sat Aug 29 18:25:51 UTC 2009
#8964: Allow adding headers to get_plugin_data
-------------------------+--------------------------------------------------
Reporter: strider72 | Owner: westi
Type: enhancement | Status: accepted
Priority: normal | Milestone: 2.9
Component: Plugins | Version:
Severity: normal | Keywords: has-patch tested commit early
-------------------------+--------------------------------------------------
Comment(by strider72):
Give extra headers the same ability as the built in ones - i.e. the key
name that ends up in the array can be different from the string matched in
the file.
I explicitly avoided this so that different plugins can't accidentally
overwrite each other.
What happens when one plugin adds a header of "Foo" with a key of "baz"
and another adds a "Bar" header also with a key of "baz"? Can't have
both. If the header and key (by definition) match, it simplifies things
greatly. "Foo" is "Foo" and "Bar" is "Bar". Period.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/8964#comment:34>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list