[wp-trac] [WordPress Trac] #33878: New function: `get_attachment_image_url()`
WordPress Trac
noreply at wordpress.org
Tue Sep 22 04:12:46 UTC 2015
#33878: New function: `get_attachment_image_url()`
------------------------------+-----------------------------
Reporter: sebastian.pisula | Owner: wonderboymusic
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.4
Component: Media | Version:
Severity: minor | Resolution: fixed
Keywords: has-patch | Focuses:
------------------------------+-----------------------------
Changes (by wonderboymusic):
* owner: => wonderboymusic
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"34372"]:
{{{
#!CommitTicketReference repository="" revision="34372"
Media: Add a new function, `wp_get_attachment_image_url()`, which is a
shortcut for `wp_get_attachment_image_src()` - same function signature,
but returns just the URL based on `$size`.
Adds unit test.
Props dipesh.kakadiya, swissspidy, sebastian.pisula.
Fixes #33878.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33878#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list