-
Notifications
You must be signed in to change notification settings - Fork 383
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
Opt in to receiving non-stable updates #3560
Open
pierlon
wants to merge
51
commits into
develop
Choose a base branch
from
enhancement/2084-add-opt-in-to-beta-feature
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
0c93dfd
Add scaffold for beta tester plugin
pierlon 0715133
Fix error with PHPUnit bootstrapper determining plugin file to load.
pierlon e67e464
Hide beta-tester plugin update
pierlon 03d1ec5
Show an error notice if AMP is not active
pierlon 92ecf82
Modify the WP plugin update transient to show the latest AMP prerelease
pierlon 34292f2
Replace AMP beta plugin 'version details' link with the one to the re…
pierlon d3a697c
Normalize composer.json
pierlon 0c8b00d
Add test suite for beta tester plugin
pierlon 97d3fdf
Display the version code in admin bar to act as a reminder that the p…
pierlon 1afd2d5
Check for a new release upon activation of beta tester plugin
pierlon a1d98cc
Revert to bootstrapper from wp-dev-lib
pierlon 9dbe30f
Remove amp-beta-tester text domain
pierlon 1c44c9c
Include the 'RC' tag when determining a pre-release
pierlon d069fe5
Remove beta-tester test suite
pierlon e2615ca
Remove the 'missing AMP' notice as its no longer necessary
pierlon fc21cb5
Remind the user about the non-stable AMP plugin if its active
pierlon 614ff2d
Hide AMP plugin update if running from source
pierlon 2ddb7b3
Update tests
pierlon 067e036
Include updating manifest if version code is the same
pierlon 0d337a2
Replace version detail URL if it exists
pierlon 3092e6d
Add test for `force_plugin_update_check`
pierlon f322111
Test that `admin_bar_menu` is hooked
pierlon d2f527a
Add test for `show_unstable_reminder`
pierlon 8d60e12
Escape plugin 'version details' url
pierlon d4f2963
Add test for `get_amp_github_releases`
pierlon 04c7901
Refactor `is_pre_release` test
pierlon 0426acd
Refactor `replace_version_details_link` test
pierlon 1d512ff
Refactor test for `get_amp_github_releases`
pierlon 2362169
Add tests for `update_amp_manifest`
pierlon e147b1f
Sync beta tester version with AMP
pierlon 552b16d
Use `wp_doing_cron()` instead of checking if `DOING_CRON` is defined
pierlon e6feafd
Refactor pre-release regex
pierlon a670aa4
Display the AMP version code as a submenu item under the top-level AM…
pierlon 1a4b2d9
Cache GitHub releases
pierlon 31dc721
Update plugin information used in the WP plugin API
pierlon 22971f9
Add beta tester plugin to built release
pierlon 3d91174
Rename folder to 'amp' upon an upgrade
pierlon a19eaeb
Bump beta tester version
pierlon 0645f5e
Sort releases in descending when retrieved
pierlon b1214ee
Rename `restore_update_plugins_transient` function to `remove_plugin_…
pierlon 700c1e6
Refactor code for updating AMP plugin update manifest
pierlon 780fa54
Refactor code for updating AMP plugin version details
pierlon 478e6ce
Allow plugin to be auto updated
pierlon 6ad0294
Require a minimum WP and PHP version
pierlon 1b9283e
Normalize constants
pierlon 4f0bc79
Make check to identify plugin to update details for more robust
pierlon 274e958
Remove unnecessary condition check when retrieving AMP plugin update …
pierlon 871b09b
Make anonymous functions static
pierlon a73fbb4
Remove suggestion of using PHP JSON extension as its now required
pierlon f757ff8
Update tests
pierlon a62f439
Merge branch 'develop' into enhancement/2084-add-opt-in-to-beta-feature
pierlon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To make this a bit more robust, it would probably be best if
wp-dev-lib
supplied the directory name and the environment variable here was only set asamp.php
. Just thinking that as it stands right now, if the user is not currently in the plugin's root directory, then this could fail to work as expected. Granted this is unlikely. Nevertheless, it seems unnecessary to always require adding$(pwd)/
every time.