FIXED: Gallery images cannot be displayed in gallery style with [http://wordpress.org/extend/plugins/cleaner-gallery/ 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.
This commit is contained in:
attosoft committed 2012-09-24 03:42:48 +00:00
1 parent 90b176f864
commit 091de8bb1a
2 files changed
+3 -2

No files matched your search

+2 -2
View File
@@ -244,8 +244,8 @@ jQuery(function($) {
// Set a different gallery-id for each WordPress Gallery
$('div.gallery').each(function() {
var id = $(this).attr('class').match(/galleryid-\d+/);
$(this).find('a.thickbox').attr('rel', id);
if (this.id)
$(this).find('a.thickbox').attr('rel', this.id);
});
<?php
}
+1
View File
@@ -275,6 +275,7 @@ You can localize the plugin with [Poedit](http://www.poedit.net/) and "languages
== Changelog ==
= Latest Version =
* FIXED: Gallery images cannot be displayed in gallery style with [Cleaner Gallery](http://wordpress.org/extend/plugins/cleaner-gallery/)
= 1.8 =
* NEW: The following options in "Action - Mouse Click - Image"