From 70beef6c31cf843ec1752941e14e8d09a6dced4b Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sun, 30 Mar 2014 22:11:58 +0000 Subject: [PATCH] Use correct formatting function. see [27864], see #27574. git-svn-id: https://develop.svn.wordpress.org/trunk@27866 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/post.php b/src/wp-admin/includes/post.php index 55747271a6..db22ca7d49 100644 --- a/src/wp-admin/includes/post.php +++ b/src/wp-admin/includes/post.php @@ -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 );