Changeset 32079
- Timestamp:
- 04/08/2015 05:10:53 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r32055 r32079 2446 2446 $size = isset( $attachment['image-size'] ) ? $attachment['image-size'] : 'medium'; 2447 2447 $alt = isset( $attachment['image_alt'] ) ? $attachment['image_alt'] : ''; 2448 2449 // No whitespace-only captions. 2448 2450 $caption = isset( $attachment['post_excerpt'] ) ? $attachment['post_excerpt'] : ''; 2451 if ( '' === trim( $caption ) ) { 2452 $caption = ''; 2453 } 2454 2449 2455 $title = ''; // We no longer insert title tags into <img> tags, as they are redundant. 2450 2456 $html = get_image_send_to_editor( $id, $caption, $title, $align, $url, (bool) $rel, $size, $alt );
Note: See TracChangeset
for help on using the changeset viewer.