WordPress.org

Forums

YouTube
[resolved] Not embed video with "--" in the code (3 posts)

  1. valedtz
    Member
    Posted 1 year ago #

    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/

  2. valedtz
    Member
    Posted 1 year ago #


  3. embedplus
    Member
    Plugin Author

    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • YouTube
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.