Use correct formatting function. see [27864], see #27574.
Built from https://develop.svn.wordpress.org/trunk@27866 git-svn-id: http://core.svn.wordpress.org/trunk@27697 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b6ac65f07f
commit
8acf74fe7b
|
@ -245,7 +245,7 @@ function edit_post( $post_data = null ) {
|
|||
|
||||
foreach ( wp_get_relevant_id3_keys( $post ) as $key => $label ) {
|
||||
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 );
|
||||
|
|
Loading…
Reference in New Issue