Enable oEmbed Within Text/HTML Widgets

By default if you paste a link to a YouTube video within a WordPress post, it automatically embeds the video – unfortuneatly if you paste a video URL into a text widget this doesn’t happen. Paste the below into your functions.php file to turn on oEmbed functionality for text/HTML widgets: