[wp-trac] [WordPress Trac] #34335: URL shorteners ( redirects) should to be supported by the embed handling for couple of hopes

WordPress Trac noreply at wordpress.org
Thu Sep 15 15:56:10 UTC 2016


#34335: URL shorteners ( redirects) should to be supported by the embed handling
for couple of hopes
----------------------------------------+-------------------------
 Reporter:  pbearne                     |       Owner:  swissspidy
     Type:  defect (bug)                |      Status:  reviewing
 Priority:  normal                      |   Milestone:  4.7
Component:  Embeds                      |     Version:  4.4
 Severity:  normal                      |  Resolution:
 Keywords:  has-unit-tests needs-patch  |     Focuses:
----------------------------------------+-------------------------
Changes (by swissspidy):

 * keywords:  has-patch has-unit-tests => has-unit-tests needs-patch


Comment:

 One big problem with the current approach is is that when pasting the
 shortened URL to a YouTube video, WordPress will eventually embed it, but
 not detect that it's coming from a trusted provider. That means the
 embedded YouTube video won't work because of the security restrictions
 WordPress puts on the iframe.

 That's because the URL passed to `wp_filter_oembed_result()` is still the
 shortened URL. The resolved URL gets lost in `WP_oEmbed::fetch()`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34335#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list