Skip to content

Add WordPress.org repository as a source #69

@viktorix

Description

@viktorix

This issue is created to continue the discussion started in the forum about adding WordPress.org repository as a source.

If we simply treat it as a repository source, regardless of its rules, it shouldn't be a problem adding it to the directory. It is developer's choice to use WordPress.org instead of a Git-based source. It is also developers responsibility to follow WP repos rules to stay listed. If WordPress closes the plugin/theme, API no longer returns any data and ClassicPress directory would suspend such plugin/theme pending a review.

For this integration to work, WordPress.org API must be used similarly to GitHub API. For example:
https://api.wordpress.org/plugins/info/1.0/wordpress-seo.json

The API returns the necessary data for the directory to do its job:

  • download_link - provides URL to a zip file with the latest version.
  • description - can be used as a fallback for the item's description, similarly to how fallback works with README.md in the repository.

Plugins/themes would still need to follow all the requirements and rules to be listed in the directory, this includes passing CPCS. Listing in WordPress repository doesn't guarantee listing in ClassicPress directory.

The update process would be handled through the directory as we have a new process being put in place to default to CP directory. If Update URI is empty and Requires CP is set, ClassicPress core will default to use directory for updates. So there should be no issues.

Important to remember: A WordPress plugin installed through original WP core integration will default to use CP directory for updates because it will have Requires CP set.

This could lead to WP repo integration removal from CP core, if WP plugins/themes begin to get listed in the directory.

This is only a discussion right now, open to feedback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requeststatus: discussionDiscussion ongoing, no decision made yet.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions