Changeset 31645 for trunk/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 03/06/2015 08:25:09 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r31626 r31645 2291 2291 } 2292 2292 2293 if ( 0 === strpos( $post['post_mime_type'], 'audio/') ) {2293 if ( wp_attachment_is( 'audio', $post['ID'] ) ) { 2294 2294 $changed = false; 2295 2295 $id3data = wp_get_attachment_metadata( $post['ID'] ); … … 2449 2449 $title = ''; // We no longer insert title tags into <img> tags, as they are redundant. 2450 2450 $html = get_image_send_to_editor( $id, $caption, $title, $align, $url, (bool) $rel, $size, $alt ); 2451 } elseif ( 'video' === substr( $post->post_mime_type, 0, 5 ) || 'audio' === substr( $post->post_mime_type, 0, 5) ) {2451 } elseif ( wp_attachment_is( 'video', $post ) || wp_attachment_is( 'audio', $post ) ) { 2452 2452 $html = stripslashes_deep( $_POST['html'] ); 2453 2453 }
Note: See TracChangeset
for help on using the changeset viewer.