FancyBox for WordPress
[resolved] Fancybox false positives (2 posts)

  1. archon810
    Posted 4 years ago #

    Fancybox fires on such urls as https://play.google.com/store/apps/details?id=com.goanyware.tgif due to the "gif" in the ending. However, there's no . before the extension, so the following patch fixes this issue and should be incorporated into the core:

    In fancybox.php, the line that starts with:

    // Supported file extensions
    var thumbnails = jQuery("a:has(img)")

    should have this added to the return statement:

    Here is what the return part should look like:
    return /\.(jpe?g|png|gif|bmp)$/i


  2. archon810
    Posted 4 years ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • FancyBox for WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic