[wp-trac] [WordPress Trac] #8964: Allow adding headers to get_plugin_data
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 22 04:42:26 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):
Correction: We don't need array_unique, because array_combine already
effectively does that. (Not normally, but because we're in the unusual
position where keys and values are the same, it works.)
So, just add this right before the array_merge line in Denis's patch:
{{{ $extra_headers = array_combine( $extra_headers, $extra_headers ); }}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/8964#comment:26>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list