Plugin Directory

Changeset 602914


Ignore:
Timestamp:
09/24/2012 03:42:48 AM (13 years ago)
Author:
attosoft
Message:

FIXED: Gallery images cannot be displayed in gallery style with Cleaner Gallery

WordPress Gallery outputs gallery-id class in galleryid-\d format, but Cleaner Gallery outputs it in gallery-\d format. Therefore the plugin failed to get gallery-id from class attribute, and overwrote existing rel attribute with empty string. Now the plugin uses id attribute instead of class attribute.

Location:
auto-thickbox-plus/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • auto-thickbox-plus/trunk/auto-thickbox.php

    r602726 r602914  
    245245    // Set a different gallery-id for each WordPress Gallery
    246246    $('div.gallery').each(function() {
    247         var id = $(this).attr('class').match(/galleryid-\d+/);
    248         $(this).find('a.thickbox').attr('rel', id);
     247        if (this.id)
     248            $(this).find('a.thickbox').attr('rel', this.id);
    249249    });
    250250<?php
  • auto-thickbox-plus/trunk/readme.txt

    r602726 r602914  
    276276
    277277= Latest Version =
     278* FIXED: Gallery images cannot be displayed in gallery style with [Cleaner Gallery](http://wordpress.org/extend/plugins/cleaner-gallery/)
    278279
    279280= 1.8 =
Note: See TracChangeset for help on using the changeset viewer.