Changeset 38812 for trunk/src/wp-includes/media.php
- Timestamp:
- 10/19/2016 03:05:51 AM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/media.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r38795 r38812 867 867 'src' => $src, 868 868 'class' => "attachment-$size_class size-$size_class", 869 'alt' => trim( strip_tags( get_post_meta($attachment_id, '_wp_attachment_image_alt', true) )), // Use Alt field first869 'alt' => trim( strip_tags( get_post_meta( $attachment_id, '_wp_attachment_image_alt', true ) ) ), 870 870 ); 871 if ( empty($default_attr['alt']) )872 $default_attr['alt'] = trim(strip_tags( $attachment->post_excerpt )); // If not, Use the Caption873 if ( empty($default_attr['alt']) )874 $default_attr['alt'] = trim(strip_tags( $attachment->post_title )); // Finally, use the title875 871 876 872 $attr = wp_parse_args( $attr, $default_attr );
Note: See TracChangeset
for help on using the changeset viewer.