[wp-trac] [WordPress Trac] #8964: Allow adding headers to get_plugin_data
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 22 04:59:32 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):
ARGH! Array_combine is PHP 5! Sorry, sorry, sorry. (And sorry for
spamming the inboxes of whomever get updates on this patch.) We need this
to work with PHP 4. This should do it:
{{{
$extra_headers = array_flip( $extra_headers );
foreach( $extra_headers as $key=>$value ) {
$extra_headers[$key] = $key;
}
}}}
Again, sorry for so many posts. This should work out nicely. Add it to
Denis's patch, just above the array_merge line.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/8964#comment:27>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list