]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/image.php
WordPress 4.1.2
[autoinstalls/wordpress.git] / wp-admin / includes / image.php
index b78bac2a568439931ec36c19b0e0bfe154996c6b..5fc7161e4f4d83080f77c645c99c44612192b102 100644 (file)
@@ -401,6 +401,12 @@ function wp_read_image_metadata( $file ) {
                }
        }
 
+       foreach ( $meta as &$value ) {
+               if ( is_string( $value ) ) {
+                       $value = wp_kses_post( $value );
+               }
+       }
+
        /**
         * Filter the array of meta data read from an image's exif data.
         *