]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/media.php
WordPress 4.2.5
[autoinstalls/wordpress.git] / wp-includes / media.php
index b69b328d1336207657fb44e3ad1440dd97afb319..35ecdd95691cb863395d9d721b9366006dd05e32 100644 (file)
@@ -847,6 +847,8 @@ function img_caption_shortcode( $attr, $content = null ) {
                        $content = $matches[1];
                        $attr['caption'] = trim( $matches[2] );
                }
+       } elseif ( strpos( $attr['caption'], '<' ) !== false ) {
+               $attr['caption'] = wp_kses( $attr['caption'], 'post' );
        }
 
        /**