-
Notifications
You must be signed in to change notification settings - Fork 382
Add back-compat to old WP versions for new v2.2 features #6773
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
Merged
Merged
Changes from 27 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
2a69d65
Check dependency_support in is_needed for AmpPlugins, AmpThemes, and …
westonruter 949eeb3
Add status=active parameter to /wp/v2/themes REST API call for WP<5.7…
westonruter 7fa097e
Do not search for blocks when on WordPress 4.9 and older
delawski f57f25c
Fail silently if plugins/themes endpoints are not available
delawski 3f3cb57
Ensure Onboarding Wizard works on WordPress 4.9
delawski 148d397
Fetch used plugin and theme fields only
delawski 6b553c4
Update message copy
delawski c8a2d41
Add minimum WordPress version check for Support page
dhaval-parekh da361ae
Update unit test cases
dhaval-parekh bec8cbe
Fix phpcs issues
dhaval-parekh 15a2a0f
Improve theme/plugin unavailability messaging
westonruter cff0d8f
Ensure ID attribute is added to scripts in WP<5.5
westonruter 7345070
Harden injection of ID attribute into script loader tag
westonruter 9360c3b
Fix regex pattern inversion
westonruter b58284d
Prevent access to validation UI when dependency_support is absent
westonruter 2913e59
Fix URLValidationRESTControllerTest after new DependencySupport depen…
westonruter d830cb6
Remove obsolete SavePostValidationEvent
westonruter 75d902c
Block access to AMP Customizer if site lacks dependency_support
westonruter ae04461
Fix typo
delawski c5ef2ec
Fix tests for restricting DevTools to whether DependencySupport present
westonruter 0f2430b
Further fix PHPUnit tests after c5ef2ec0f
westonruter cc835a3
Merge branch 'develop' of github.com:ampproject/amp-wp into add/wp-ba…
westonruter c1e18f8
Temporarily register dependency_support as first service
westonruter 721916a
Revert "Ensure Onboarding Wizard works on WordPress 4.9"
westonruter 30b78fc
Add dependency_support as a requirement for AmpPlugins & AmpThemes
schlessera 3214f92
Add missing HasRequirements interface to PluginActivationSiteScan
westonruter 942f91e
Add codeCoverageIgnore comments
westonruter 00ec54f
Further harden regex in amp_ensure_id_attribute_on_script_loader_tag()
westonruter 24943e9
Restore wp_version in test tearDown method
westonruter e5c562b
Run amp_ensure_id_attribute_on_script_loader_tag at earliest priority
westonruter 0dcdc77
Fix tests in WP 4.9..5.1
westonruter 6d26e84
Fix test_prepare_response_standard in WP<5.5
westonruter f1c6208
Add tests for AMP_Customizer_Design_Settings
westonruter ccb9090
Add tests for amp_bootstrap_plugin()
westonruter 6dbd043
Fix test_init_customizer to account for Gutenberg being active
westonruter 779104f
Use remove_all_filters instead of remove_all_actions for purity sake
westonruter ff7e7b7
Hide DevTools toggles when dependency_support is absent
westonruter 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.