Make WordPress Core


Ignore:
Timestamp:
03/31/2014 05:15:39 AM (11 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/post.php

    r27866 r27869  
    244244        }
    245245
    246         foreach ( wp_get_relevant_id3_keys( $post ) as $key => $label ) {
     246        foreach ( wp_get_attachment_id3_keys( $post, 'edit' ) as $key => $label ) {
    247247            if ( isset( $post_data[ 'id3_' . $key ] ) ) {
    248248                $id3data[ $key ] = sanitize_text_field( wp_unslash( $post_data[ 'id3_' . $key ] ) );
Note: See TracChangeset for help on using the changeset viewer.