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:
Scott Taylor
2014-03-31 05:16:16 +00:00
parent 98ceb17972
commit 01d2062af3
4 changed files with 68 additions and 68 deletions

View File

@@ -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 ] ) );
}