Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #32069


Ignore:
Timestamp:
04/22/2015 08:44:28 PM (9 years ago)
Author:
stephdau
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32069

    • Property Summary changed from Check embeds list against oembed providers too. to Press This: Check embeds list against oembed providers too.
  • Ticket #32069 – Description

    initial v2  
    33The 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):
    44{{{
    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)
    66                            && ! preg_match( '/\/youtu\.be\/.+$/', $src )                         // Youtu.be video page
    77                            && ! preg_match( '/\/\/vimeo\.com\/[\d]+$/', $src )                   // Vimeo video page