-
Notifications
You must be signed in to change notification settings - Fork 382
Extend Sandboxing experiment to Paired AMP modes #7288
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 14 commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
6814d52
Add sandboxing drawer in all template modes
thelovekesh 29c704d
Update sandboxing service to be enabled during all template modes
thelovekesh c201f1f
Add function to determine sandboxing level if enabled
thelovekesh b8fed2c
Update amp_add_amphtml_link() function to compatible with sandboxing …
thelovekesh f49dbc8
Merge branch 'develop' into add/sandboxing-in-all-modes
thelovekesh 4d920da
Add media attribute in alternate link
thelovekesh dae2ca6
Fix valid code in comment phpcs error
thelovekesh 275219b
Merge branch 'develop' into add/sandboxing-in-all-modes
thelovekesh ab7ca11
Update option keys to be used from Option interface
thelovekesh 1f1cd6b
Merge branch 'develop' into add/sandboxing-in-all-modes
thelovekesh 6b68b99
Move sandboxing level determining function to helper functions
thelovekesh dcccebc
Add test case for amp_get_sandboxing_level()
thelovekesh 353561f
Add check to stop redirecting from AMP to non-AMP if sandboxing is no…
thelovekesh 40688e0
Show `Exit mobile version` button when mobile redirection is disabled…
thelovekesh de8fd70
Update actions for enabling exit mobile version on AMP pages
thelovekesh 2ff8bc2
Add guard to return early if mobile version switcher link's text is n…
thelovekesh 48a0553
Get sandboxing level if AMP url is present
thelovekesh e70fd6d
Test when mobile version switcher text is empty
thelovekesh a592b27
Test amphtml link when sandboxing is not set to strict
thelovekesh a516138
Use callback on action hook
thelovekesh fcaef98
Add test cases for adding mobile version switcher link when mobile re…
thelovekesh 97b5e41
Merge branch 'develop' into add/sandboxing-in-all-modes
thelovekesh 07a319e
Add type casting to confirm that video id is returned as int
thelovekesh ee5fec8
Move AMPDrawer component to main setting page
thelovekesh 2ed973b
Add scoll to element to keep it on viewport
thelovekesh 5569b62
Update method name
thelovekesh 65bca88
Add required hooks in private methods for reuse
thelovekesh d6bd3dc
Merge branch 'develop' into add/sandboxing-in-all-modes
thelovekesh a88c679
Update hooks calls with respective function calls
thelovekesh 59f92f0
Add helper function for adding alternate link
thelovekesh 59c7e23
Add test cases for amp_add_alternate_link()
thelovekesh 9bfb9c1
Update alternate link string with amp_add_alternate_link helper function
thelovekesh 37271a8
Update amp_add_amphtml_link to echo instead of return
thelovekesh 7e610b9
Add covers tag for add coverage for mobile switcher hooks
thelovekesh 58b1735
Merge branch 'develop' into add/sandboxing-in-all-modes
thelovekesh 3827e98
Remove unused namespace alias
thelovekesh d0607bb
Merge branch 'develop' into add/sandboxing-in-all-modes
thelovekesh c232aca
Merge branch 'develop' into add/sandboxing-in-all-modes
thelovekesh 78d3614
Refactor logic to include mobile alternate link
thelovekesh 0a4f7f8
Update test cases for amphtml link helper function
thelovekesh e95acec
Update test cases for mobile alternate link addition in head
thelovekesh 80e9278
Merge branch 'develop' into add/sandboxing-in-all-modes
thelovekesh 99c1d51
Prevent removing required AMP markup if there are builtin AMP tags pr…
westonruter dd9217a
Add workaround for cdata_malformed_utf8_json test
westonruter 60f4254
Update conditions before printing mobile alternate link
thelovekesh da412cd
Add check for AMP request to avoid adding mobile alternate link in AM…
thelovekesh 4b97e0c
Fix variable naming
thelovekesh f297693
Remove vague param from mobile switcher head hooks method
thelovekesh e0c7e96
Add `@since` tag
thelovekesh f813e71
Update test cases to test mobile alternative link in canonical mode
thelovekesh ad0972d
Fix tests and logic for add_mobile_alternative_link()
thelovekesh 3a5e798
Add test cases to ensure the state of amp_is_request() in add_mobile_…
thelovekesh 5e87dbf
Setup WP query before reseting hooks
thelovekesh 0d2c16f
Merge branch 'develop' into add/sandboxing-in-all-modes
thelovekesh 0624608
Add tests cases for SandboxingTest::remove_required_amp_markup_if_not…
thelovekesh 819ef5e
Add guard to check if AMP is available before printing mobile alterna…
thelovekesh 22560a0
Merge branch 'develop' into add/sandboxing-in-all-modes
thelovekesh d789352
Remove hooks that maybe adds mobile switcher links
thelovekesh e9fc07e
Remove method to add all hooks for mobile switcher links
thelovekesh b4ee07b
Remove test cases for adding mobile switcher link in register
thelovekesh dbe9350
Add tests cases for mobile switcher link hooks helper methods
thelovekesh 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
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.