Opened 14 years ago
Closed 14 years ago
#23075 closed defect (bug) (fixed)
Missed attribute 'title' in wp_get_attachment_image function
| Reported by: | SkyDriver | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | WordPress.org |
| Component: | Media | Version: | 3.5 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
In codex (http://codex.wordpress.org/Function_Reference/wp_get_attachment_image)
$default_attr = array( 'src' => $src, 'class' => "attachment-$size", 'alt' => trim(strip_tags( get_post_meta($attachment_id, '_wp_attachment_image_alt', true) )), 'title' => trim(strip_tags( $attachment->post_title )), );
In media.php (Line: 554, http://core.trac.wordpress.org/browser/tags/3.5/wp-includes/media.php#L0)
$default_attr = array( 'src' => $src, 'class' => "attachment-$size", 'alt' => trim(strip_tags( get_post_meta($attachment_id, '_wp_attachment_image_alt', true) )), // Use Alt field first );
Change History (1)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Removed in [22409]. I've removed it from Codex as well.