Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mike Doherty

    (@_doherty)

    Which gallery are you talking about? Please provide a link to an example that shows the error you’re referring to.

    Hi Mike,

    unfortunately, I have the same problem with standard wordpress galleries. Can you already provide a fix for this bug? Gallery images are either not visible or the stylesheet is changed.

    Thanks for your efforts!

    Finally, I can tell you what is wrong with your plugin:

    In my case, I have a rather large blog, with different authors. On the one hand, they can all upload files and on the other hand, I have no time to check every mime type. Actually, some people managed to create a jpg-file with a pdf mime type which is not filtered out by

    if ( $wp_post->post_type != ‘attachment’ || $wp_post->post_mime_type != ‘application/pdf’) {

    Therefore, I had to insert an additional condition

    $pos = strpos($src, ‘.pdf’);
    if ($pos === false)
    return;

    In order to check, whether .pdf is part of the filename. Otherwise I will exit the function without adding the <object> tags, which crashed the WP galleries.

    Now I think my problem (and that of pinkylips) is solved, but from a good plugin I would have expected a better support instead of not responding.

    By the way, your problem was already reportet 1 year ago:

    https://www.ads-software.com/support/topic/false-positive-on-jpgs-in-gallery

    Plugin Author Mike Doherty

    (@_doherty)

    The file extension is not a reliable indicator of file type. Set the MIME type properly on your uploads.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Affecting Gallery Display’ is closed to new replies.