[wp-trac] [WordPress Trac] #36246: wp_get_attachment_image should use wp_get_attachment_metadata

WordPress Trac noreply at wordpress.org
Sun Aug 21 06:14:38 UTC 2016


#36246: wp_get_attachment_image should use wp_get_attachment_metadata
--------------------------------------+-----------------------------
 Reporter:  JorritSchippers           |       Owner:  wonderboymusic
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  4.7
Component:  Media                     |     Version:  4.4.2
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------------
Changes (by wonderboymusic):

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


Comment:

 In [changeset:"38296"]:
 {{{
 #!CommitTicketReference repository="" revision="38296"
 Media: use `wp_get_attachment_metadata()` instead of `get_post_meta()`
 where appropriate.

 Adds unit test.

 Props JorritSchippers.
 Fixes #36246.
 }}}

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


More information about the wp-trac mailing list