File Gallery
[resolved] Duplicated CSS image classes (fix) (3 posts)

  1. tallerthanpenguins
    Posted 4 years ago #

    Thanks for the plugin work!

    One issue I found when inserting a number of images is that the image class selectors were being duplicated for each image inserted, so we would get results that included image class values looking like the following:
    first image: "aligncenter size-large wp-image-6397"
    second image: "aligncenter size-large aligncenter size-large wp-image-6398"
    third image: "aligncenter size-large aligncenter size-large aligncenter size-large wp-image-6400"

    To fix this, I modified line 120 of includes/attachments.php as follows:
    change from:
    $imageclass .= ' align' . $align;
    $imageclass = ' align' . $align;

    seems to work fine so thought I'd communicate it back.



  2. Aesqe
    Plugin Author

    Posted 3 years ago #

    @tallerthanpenguins: thanks for the bug report! :)

    I'll fix it and release a new version of the plugin tomorrow.

  3. Aesqe
    Plugin Author

    Posted 3 years ago #

    fixed in, marking as resolved

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • File Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic