WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. archon810
    Member
    Posted 2 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

    http://wordpress.org/extend/plugins/fancybox-for-wordpress/

  2. archon810
    Member
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic