Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #32069


Ignore:
Timestamp:
04/23/2015 08:15:01 PM (9 years ago)
Author:
stephdau
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32069 – Description

    v2 v3  
    11We brought the concept of checking pressed URLs against core's list of oembed providers, which makes it possible to auto-embed media in the editor on page load, when scanning a Youtube page, etc.
    22
    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):
     3The check currently resides in the `get_suggested_content()` 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{{{
    55                } else if ( ! preg_match( '/\/\/(m|www)\.youtube\.com\/watch\?/', $src )          // Youtube video page (www or mobile)