Changeset 22409 for trunk/wp-includes/media.php
- Timestamp:
- 11/06/2012 11:23:03 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r22362 r22409 229 229 $class = apply_filters('get_image_tag_class', $class, $id, $align, $size); 230 230 231 $html = '<img src="' . esc_attr($img_src) . '" alt="' . esc_attr($alt) . '" title="' . esc_attr($title).'"'.$hwstring.'class="'.$class.'" />';231 $html = '<img src="' . esc_attr($img_src) . '" alt="' . esc_attr($alt) . '" '.$hwstring.'class="'.$class.'" />'; 232 232 233 233 $html = apply_filters( 'get_image_tag', $html, $id, $alt, $title, $align, $size ); … … 549 549 'class' => "attachment-$size", 550 550 'alt' => trim(strip_tags( get_post_meta($attachment_id, '_wp_attachment_image_alt', true) )), // Use Alt field first 551 'title' => trim(strip_tags( $attachment->post_title )),552 551 ); 553 552 if ( empty($default_attr['alt']) )
Note: See TracChangeset
for help on using the changeset viewer.