[wp-trac] [WordPress Trac] #8964: Allow adding headers to get_plugin_data

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 28 12:54:28 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):

 1) Good idea, since it doesn't allow you to change the existing headers

 2) Could you explain what you mean?  The only thing that matters in the
 returned array is the values.  Keys are irrelevant.  In the final it uses
 $value => $value for the new header

 3) It already does this:
 {{{$all_headers = array_merge($extra_headers, $default_headers);}}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/8964#comment:32>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list