[wp-trac] Re: [WordPress Trac] #8964: Allow adding headers to
get_plugin_data
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 10 19:44:36 GMT 2009
#8964: Allow adding headers to get_plugin_data
-------------------------+--------------------------------------------------
Reporter: strider72 | Owner: westi
Type: enhancement | Status: assigned
Priority: normal | Milestone: 2.8
Component: Plugins | Version:
Severity: normal | Keywords: has-patch plugins filters
-------------------------+--------------------------------------------------
Comment(by strider72):
1) The changes are additive -- I do a merge_array giving existing headers
priority.
2) Let's get Plugins solid and then I'll go in and do the same for Themes.
3) By "plugin specific" you mean it should only work if it specifies the
plugin to check? I say resoundingly, NO. That would defeat the ability
to make my plugin work with "whatever other plugins are designed to be
compatible". i want to be able to make code that says "For each plugin
that has Header X, do this...."
Not sure how "plugin specific" ensures "correct programming"
I don't understand what you mean about a helper function. Why do this?
Isn't the filter much simpler? K.I.S.S.
"... and saves the code you have to check in the action for it being for
you."
I don't understand that statement at all.
A good example of this plugin is a 3rd party version checker. We can add
a header "Version Check URL:" The plugin doing the check can readily find
*all* plugins that have this header and check those URLs for update info.
I'm not sure how extensive plugin registration helps this process.
For a specific use case, look at this: http://code.google.com/p/strider-
core/
This is a plugin framework I'm working on, that includes the
aforementioned version checking. There is no download under the "main"
code section, but look in Downloads for a sample plugin that uses the
framework. (It makes more sense in context anyway....)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/8964#comment:7>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list