[wp-hackers] Checking for custom Plugin Headers?

Stephen Rider wp-hackers at striderweb.com
Mon Jan 26 05:32:42 GMT 2009


Hi --

I just submitted a patch that allows plugin authors to specify  
additional Headers to be returned by get_plugin_data().  For example,  
a plugin could have:

WP Minimum Version: 2.8

...and with this filter you could make get_plugin_data() return that  
header as $plugin_data['WPMin'] right alongside the standard  
$plugin_data['Name'] etc.

The patch is secure -- it doesn't let plugins alter the standard  
headers at all, just add new ones.

Does anyone else like this idea?  I've had several cases over the  
years where I thought this could be very nice for plugin coders.   
Here's the ticket on trac:  http://trac.wordpress.org/ticket/8964

Stephen



-- 
Stephen Rider
http://striderweb.com/





More information about the wp-hackers mailing list