Cleanup up the display, escaping, and handling of ID3 data for media. Rename wp_get_relevant_id3_keys() to wp_get_attachment_id3_keys().
Props nacin. See #27574. Built from https://develop.svn.wordpress.org/trunk@27869 git-svn-id: http://core.svn.wordpress.org/trunk@27700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -243,7 +243,7 @@ function edit_post( $post_data = null ) {
|
||||
$id3data = array();
|
||||
}
|
||||
|
||||
foreach ( wp_get_relevant_id3_keys( $post ) as $key => $label ) {
|
||||
foreach ( wp_get_attachment_id3_keys( $post, 'edit' ) as $key => $label ) {
|
||||
if ( isset( $post_data[ 'id3_' . $key ] ) ) {
|
||||
$id3data[ $key ] = sanitize_text_field( wp_unslash( $post_data[ 'id3_' . $key ] ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user