Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to update from a plugin's beta #6

Open
afragen opened this issue Jun 7, 2019 · 3 comments
Open

Add ability to update from a plugin's beta #6

afragen opened this issue Jun 7, 2019 · 3 comments
Assignees

Comments

@afragen
Copy link
Owner

afragen commented Jun 7, 2019

Not certain if there's a standard for how to keep a beta on the dot org SVN. If there is this should be doable. If there's no standard, we would likely need to create one.

@afragen
Copy link
Owner Author

afragen commented Jun 10, 2019

It should be possible to query the dot org plugins API and return an array of version for the plugin. We would then need to parse the array to find a beta and do a version_compare to the latest version.

https://api.wordpress.org/plugins/info/1.1/?action=plugin_information&request%5Bslug%5D=jetpack

  1. We would need to search through all installed plugins.
  2. Parse versions and check for beta tags
  3. Update update_plugins transient with beta package

Would likely need to create settings page to check which plugins to be a beta tester for.

This method would rely on the individual plugin dev to properly create a tag with the beta.

@pbiron
Copy link

pbiron commented Mar 10, 2020

@afragen
Copy link
Owner Author

afragen commented Mar 10, 2020

@pbiron I saw that.
I saw it. I think it would require large changes to the core update API as well as the plugin info API.

I could see it being a bit simpler to first write a plugin for handling that for plugins before considering merging into this plugin. I do have a passing familiarity with providing multiple offerings/updates for plugins. 🥳

@afragen afragen self-assigned this Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants