-
Notifications
You must be signed in to change notification settings - Fork 383
Unwrap all embeds with paragraph tags #4650
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
Closed
Closed
Changes from 11 commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
7401840
Sanitize DailyMotion embeds
pierlon 3c57f35
Sanitize gfycat embeds
pierlon 7e1ccf0
Unwrap Instagram embeds
pierlon 3bb9d3e
Unwrap Scribd embeds
pierlon be260f8
Unwrap SoundCloud embeds
pierlon d7f3421
Sanitize Twitter timelines and moments
pierlon 9c17878
Unwrap Vimeo embeds
pierlon 91cdd3d
Sanitize YouTube embeds
pierlon ce5ef79
Sanitize WordPress TV embeds
pierlon 575f173
Sanitize Hulu embeds
pierlon d789507
Fix lint errors
pierlon 2ee90b4
Merge branch 'develop' into fix/4450-wrapped-embeds
pierlon bd606bf
Make child element count more robust
pierlon 8e492b2
Extract base embed URLs as class constants
pierlon 3f4f9ae
Get dimensions from iframe if available
pierlon 085d1cc
Refactor logic for removing script sibling
pierlon 050b9e7
Simplify logic for retrieving embed IDs
pierlon 6893a47
Fix tests
pierlon 34ca29c
Implement the Template Method design pattern
pierlon c955f45
Sanitize Imgur embeds
pierlon 21ae657
Sanitize Tumblr embeds
pierlon 8850a0f
Mock tests for DailyMotion
pierlon decbb49
Sanitize Reddit embeds
pierlon 361b712
Implement `get_raw_embed_nodes` in `AMP_Base_Embed_Handler`
pierlon 28b4394
Remove `get_parent_element` method
pierlon c663535
Make YouTube xpath query more specific
pierlon 1f4df49
Merge branch 'develop' into fix/4450-wrapped-embeds
pierlon 573334a
Fix lint issues
pierlon c695846
Mock Instagram embed test
pierlon 67bf708
Update docblocks specifying alternative return values
pierlon e1c768d
Fix test cases for Dailymotion, Twitter, Gfycat and WordPress TV embeds
pierlon 5b2ece9
Update mocked responses
pierlon 5fa1cdb
Sanitize Meetup embeds
pierlon 85b55cb
Sanitize Issuu embeds
pierlon 996862a
Sanitize CrowdSignal embeds
pierlon 1cd716f
Merge branch 'develop' into fix/4450-wrapped-embeds
pierlon 4885788
Sanitize Pinterest embeds
pierlon 59066e8
Sanitize Vine embeds
pierlon 7c03ced
Add `Registerable` interface to indicate embed handlers that hook int…
pierlon 1d91d0b
Fix lint and static analysis errors
pierlon cb3ef8b
Merge branch 'develop' into fix/4450-wrapped-embeds
pierlon beadf51
Rename `whitelist_sanitizer` to `validating_sanitizer`
pierlon b0157a1
Mark Pinterest and Vine embed handlers as registerable
pierlon b3a2c1c
Add oEmbed provider URLs for embeds not supported in WP 5.1
pierlon dfaf3e5
Fix YouTube embed test
pierlon 244b53d
Merge branch 'develop' into fix/4450-wrapped-embeds
pierlon a857f25
Remove unused vars
pierlon 434660a
Fix tests failures related to Gutenberg
pierlon 986c036
Add oEmbed provider URL for Crowdsignal surveys on WP 5.2.
pierlon 62fa5ae
Merge branch 'develop' of github.com:ampproject/amp-wp into fix/4450-…
westonruter 0860f48
Update phpdoc to reflect where methods do not return null
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
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.