Enable https://youtube.com without www

Replies: 2

Hello,

the plugin really is great, thanks for putting it together. Just by accident, I found that when putting the link to youtube like this: https://youtube.com/watch?v=whatever (without www), the block will not be replaced.
I found that in the switch statement hd_bcve_render_core_embed_block, you have only the case ‘www.youtube.com’. I don’t see a reason why you couldn’t also add youtube.com without www? Knowing that it only works with www, I can just always add it, but for less techy users this behaviour might come as a surprise. https://youtube.com and https://www.youtube.com are both valid and should both work.

  • This topic was modified 20 hours, 34 minutes ago by mrksdiehl.
  • This topic was modified 20 hours, 33 minutes ago by mrksdiehl.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer