Changes between Initial Version and Version 2 of Ticket #32069
- Timestamp:
- 04/22/2015 08:44:28 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #32069
-
Property
Summary
changed from
Check embeds list against oembed providers too.
toPress This: Check embeds list against oembed providers too.
-
Property
Summary
changed from
-
Ticket #32069 – Description
initial v2 3 3 The check currently resides in the `_html` method. We should widen the scope of this check to the `_limit_embed()` method, so we can do away with the tests that check the sent `$src` against page regexes (not iframe ones): 4 4 {{{ 5 } else if ( ! preg_match( '/\/\/(m|www)\.youtube\.com\/watch\?/', $src ) // Youtube video page (www or mobile)5 } else if ( ! preg_match( '/\/\/(m|www)\.youtube\.com\/watch\?/', $src ) // Youtube video page (www or mobile) 6 6 && ! preg_match( '/\/youtu\.be\/.+$/', $src ) // Youtu.be video page 7 7 && ! preg_match( '/\/\/vimeo\.com\/[\d]+$/', $src ) // Vimeo video page