Closed kasparsd closed 10 years ago
I can see a case for adding GitHub URI
in addition to GitHub Plugin URI
for plugins as the most common use case for this plugin is in updating plugins. But I'd like a lot more input from others explaining why they'd need it.
However, the current format does provide for a more explicit notation as anyone looking at it knows what it is in its own context. WordPress format uses Plugin URI
and Theme URI
and so the claim that we already know if a script is a plugin or a theme would be like asking WP to change its format to be URI
as we already know the context.
If the idea is to make it compatible with other updating plugins, I think there are potentially more problems if both updaters are active.
If the idea is that you're testing multiple updating plugins, you can have both headers in your plugin without any problem.
@GaryJones any thoughts on this?
I don't think it's worth complicating the GHU plugin just to allow authors to save 6-7 characters. This is often set up in a boilerplate anyway.
Thanks for looking into this @afragen and @GaryJones! I do understand your reasoning. How about adding a filter then?
@kasparsd I guess the same question applies, why? I'm not sure there's much of a use case for defining your own headers. If there is I'm open to it.
I agree with Andy. In fact, I think its bad practice to remove the words "plugin" and "theme" as they indicate WHERE the files are supposed to be updated/installed. I would close as declined.
Thanks for your input Seth.
We already know if a script is a plugin or a theme during the update check so there is no need to specify that in the header. Alternatively, it should be possible for the plugin to define its own header key via a filter, like: