#2970 closed enhancement (invalid)
Themes API
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | API | Keywords: | |
Cc: |
Description
Like Plugins_API, we could have a Themes_API so that we can collect information from the themes that are available in the themes directory.
This would probably make it easier to use new plugins directory for themes (which is something that is in plans as far as I know). Not only that, but we could have extra useful methods that are related to WordPress.org themes.
One functionality that comes to mind is assigning some sort of unique hash key for each theme hosted on wp.org. This would allow the differentiation between themes that are hosted here, and same named themes hosted somewhere else (ThemeForest or privately hosted).
A wp.org author could then include the unique hash in his theme, which would then be picked up by the API. Each hash would be unique and known to the theme author.
This would eliminate the update issues that can happen with themes that are named the same, and the active installs count. A check could be made if the hash is consistent with the theme name, which would prevent any same name update collision and active install manipulation.
Just an idea...
We do already have a themes API call, and the unique hash idea would need to be in a core ticket. Pretty sure it already is, in fact.