Validate image data.
Merges [30458] to the 3.9 branch. Built from https://develop.svn.wordpress.org/branches/3.9@30463 git-svn-id: http://core.svn.wordpress.org/branches/3.9@30454 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
940eb60ad7
commit
6f300d7d12
|
@ -366,6 +366,12 @@ function wp_read_image_metadata( $file ) {
|
|||
$meta[ $key ] = utf8_encode( $meta[ $key ] );
|
||||
}
|
||||
|
||||
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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue