diff --git src/wp-admin/includes/ajax-actions.php src/wp-admin/includes/ajax-actions.php
index 7a01af9..1555193 100644
|
|
function wp_ajax_send_attachment_to_editor() { |
2446 | 2446 | $size = isset( $attachment['image-size'] ) ? $attachment['image-size'] : 'medium'; |
2447 | 2447 | $alt = isset( $attachment['image_alt'] ) ? $attachment['image_alt'] : ''; |
2448 | 2448 | $caption = isset( $attachment['post_excerpt'] ) ? $attachment['post_excerpt'] : ''; |
| 2449 | $caption = trim( $caption ); |
2449 | 2450 | $title = ''; // We no longer insert title tags into <img> tags, as they are redundant. |
2450 | 2451 | $html = get_image_send_to_editor( $id, $caption, $title, $align, $url, (bool) $rel, $size, $alt ); |
2451 | 2452 | } elseif ( wp_attachment_is( 'video', $post ) || wp_attachment_is( 'audio', $post ) ) { |