[wp-trac] [WordPress Trac] #33878: New function: `get_attachment_image_url()`

WordPress Trac noreply at wordpress.org
Sun Nov 1 02:56:07 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 azaozz):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 Yeah, I agree `wp_get_attachment_image_src()` is not intuitive as it
 returns an array, and `wp_get_attachment_image_url()` makes it easier for
 people that do not want to read any docs. Just not sure if we should
 encourage that :)

 In any case, this has been in core for a few weeks. I should have seen it
 earlier.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33878#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list