WordPress.org

Ready to get started?Download WordPress

Forums

YouTube Embeds should support Youtube URL's parameters (2 posts)

  1. aguett
    Member
    Posted 1 year ago #

    Hello,

    I like the way WP detects a YouTube URL to make it into an embedded video but it doesn't detect YouTube URLs with URL parameters (and I really don't see any reason why WP would prohibit the use of such URL parameters).

    e.g. :
    This works (i.e. the line is interpreted as a YouTube video which must be converted into an embedded video):

    http://www.youtube.com/watch?v=szmbgvGIeMI

    This doesn't work i.e. it's not converted into an embedded video (and should work) :

    http://www.youtube.com/watch?v=szmbgvGIeMI?autoplay=0&controls=0&showinfo=0&rel=0

    Cheers,

  2. WP isn't prohibiting, youtube isn't parsing (we're calling their oembed aspects).

    https://core.trac.wordpress.org/browser/trunk/wp-includes/class-oembed.php#L33

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags