WordPress.org

Support

Support » Plugins and Hacks » File Gallery » [Resolved] [Plugin: File Gallery] Duplicated CSS image classes (fix)

[Resolved] [Plugin: File Gallery] Duplicated CSS image classes (fix)

  • 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/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: File Gallery] Duplicated CSS image classes (fix)’ is closed to new replies.
Skip to toolbar