Permalink
Browse files

Allow HTML in gallery captions like WP core.

  • Loading branch information...
justintadlock committed Jun 13, 2012
1 parent 4425b5a commit de1d620f52684ca30bac9a6d77a0c02dc71502fe
Showing with 2 additions and 2 deletions.
  1. +2 −2 extensions/cleaner-gallery.php
@@ -15,7 +15,7 @@
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* @package CleanerGallery
- * @version 0.9.3
+ * @version 0.9.4
* @author Justin Tadlock <justin@justintadlock.com>
* @copyright Copyright (c) 2008 - 2012, Justin Tadlock
* @link http://justintadlock.com/archives/2008/04/13/cleaner-wordpress-gallery-plugin
@@ -138,7 +138,7 @@ function cleaner_gallery( $output, $attr ) {
$output .= "</{$icontag}>";
/* Get the caption. */
- $caption = apply_filters( 'cleaner_gallery_caption', wptexturize( esc_html( $attachment->post_excerpt ) ), $id, $attr, $cleaner_gallery_instance );
+ $caption = apply_filters( 'cleaner_gallery_caption', wptexturize( $attachment->post_excerpt ), $id, $attr, $cleaner_gallery_instance );
/* If image caption is set. */
if ( !empty( $caption ) )

0 comments on commit de1d620

Please sign in to comment.