WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. tallerthanpenguins
    Member
    Posted 1 year 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"
    ...etc

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

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

    thanks!

    http://wordpress.org/extend/plugins/file-gallery/

  2. Aesqe
    Member
    Plugin Author

    Posted 1 year ago #

    @tallerthanpenguins: thanks for the bug report! :)

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

  3. Aesqe
    Member
    Plugin Author

    Posted 1 year ago #

    fixed in 1.7.5.3, marking as resolved

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic