Use correct formatting function. see [27864], see #27574.
git-svn-id: https://develop.svn.wordpress.org/trunk@27866 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
35306513dc
commit
70beef6c31
|
@ -245,7 +245,7 @@ function edit_post( $post_data = null ) {
|
||||||
|
|
||||||
foreach ( wp_get_relevant_id3_keys( $post ) as $key => $label ) {
|
foreach ( wp_get_relevant_id3_keys( $post ) as $key => $label ) {
|
||||||
if ( isset( $post_data[ 'id3_' . $key ] ) ) {
|
if ( isset( $post_data[ 'id3_' . $key ] ) ) {
|
||||||
$id3data[ $key ] = sanitize_post_field( wp_unslash( $post_data[ 'id3_' . $key ] ) );
|
$id3data[ $key ] = sanitize_text_field( wp_unslash( $post_data[ 'id3_' . $key ] ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
wp_update_attachment_metadata( $post_ID, $id3data );
|
wp_update_attachment_metadata( $post_ID, $id3data );
|
||||||
|
|
Loading…
Reference in New Issue