[wp-trac] [WordPress Trac] #37343: wp_get_attachment_link() outputs nothing if the attachment post has no title
WordPress Trac
noreply at wordpress.org
Sat Aug 20 23:44:08 UTC 2016
#37343: wp_get_attachment_link() outputs nothing if the attachment post has no
title
--------------------------+-----------------------------
Reporter: henry.wright | Owner: wonderboymusic
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.7
Component: Media | Version: 4.5.3
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+-----------------------------
Changes (by wonderboymusic):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"38295"]:
{{{
#!CommitTicketReference repository="" revision="38295"
Media: `wp_get_attachment_link()` fails to output text for non-images if
the attachment post doesn't have a title and `$text` (argument #5) was not
passed to the func. In this case, use the filename.
Props Jonnyauk, henry.wright.
Fixes #37343.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37343#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list