Changeset 27864 for trunk/src/wp-admin/includes/post.php
- Timestamp:
- 03/30/2014 09:07:04 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/post.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r27862 r27864 238 238 } 239 239 240 if ( 'attachment' === $post_data['post_type'] && preg_match( '#^ audio|video#', $post_data['post_mime_type'] ) ) {240 if ( 'attachment' === $post_data['post_type'] && preg_match( '#^(audio|video)/#', $post_data['post_mime_type'] ) ) { 241 241 $id3data = wp_get_attachment_metadata( $post_ID ); 242 242 if ( ! is_array( $id3data ) ) { … … 244 244 } 245 245 246 foreach ( wp_get_relevant_id3_keys( ) as $key => $label ) {246 foreach ( wp_get_relevant_id3_keys( $post ) as $key => $label ) { 247 247 if ( isset( $post_data[ 'id3_' . $key ] ) ) { 248 if ( current_user_can( 'unfiltered_html' ) ) { 249 $id3data[ $key ] = wp_unslash( $post_data[ 'id3_' . $key ] ); 250 } else { 251 $id3data[ $key ] = wp_unslash( wp_kses_post( $post_data[ 'id3_' . $key ] ) ); 252 } 248 $id3data[ $key ] = sanitize_post_field( wp_unslash( $post_data[ 'id3_' . $key ] ) ); 253 249 } 254 250 }
Note: See TracChangeset
for help on using the changeset viewer.