} $format_keys = array
( 'quote', 'quote_source_name', 'image', 'gallery', 'audio_embed', 'video_embed'
);
foreach ( $format_keys as $key ) { $keyed = '_format_' .
$key;
if ( isset( $post_data[ $keyed ] ) ) { if ( current_user_can( 'unfiltered_html'
) ) { update_post_meta( $post_id,
$keyed,
$post_data[ $keyed ] );
} else { update_post_meta( $post_id,
$keyed,
wp_filter_post_kses( $post_data[ $keyed ] ) );
} } } if ( 'attachment' ===
$post_data['post_type'
] &&
preg_match( '#^(audio|video)/#',
$post_data['post_mime_type'
] ) ) { $id3data =
wp_get_attachment_metadata( $post_id );
if ( !
is_array( $id3data ) ) { $id3data = array
();
} foreach ( wp_get_attachment_id3_keys( $post, 'edit'
) as $key =>
$label ) {