Validate image data.
Merges [30458] to the 4.0 branch. Built from https://develop.svn.wordpress.org/branches/4.0@30462 git-svn-id: http://core.svn.wordpress.org/branches/4.0@30453 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d9cd72430f
commit
6e658f81cf
|
@ -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.
|
* Filter the array of meta data read from an image's exif data.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue