Support » Plugin: YouTube » Not embed video with "–" in the code

  • Resolved valedtz

    (@valedtz)


    Good afternoon,
    I used your plugin and I found a bug.
    I want embed this video: http://www.youtube.com/watch?v=SSi2JV–Auw
    But your plugin read “SSi2JV–Auw” and it doesn’t embed it.
    I fixed it! The solutions is:
    File: youtube.php – line 697 and line 342:

    $link = preg_replace('/\s/', '', $link);

    replace with:

    $link = preg_replace('/\s/', '', $link);
    $link = str_replace('&#8211\;', '--', $link); //without "\" (this editor read html code)

    I don’t know if it is the best solution.
    Please fix this bug.
    Thanks,

    Valentina

    https://wordpress.org/plugins/youtube-embed-plus/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author embedplus

    (@embedplus)

    Hi there Valentina,

    Thanks for your constructive feedback! We analyzed the code and implemented a similar solution but with some modifications. You (and all users) should upgrade to the latest version (currently 8.1).

    Cheers,
    -EmbedPlus Team

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not embed video with "–" in the code’ is closed to new replies.