[wp-trac] [WordPress Trac] #30180: wp_get_attachment_image_src does not return alt or meta

WordPress Trac noreply at wordpress.org
Wed Feb 20 23:51:32 UTC 2019


#30180: wp_get_attachment_image_src does not return alt or meta
-------------------------------------------------+-------------------------
 Reporter:  joedolson                            |       Owner:  joedolson
     Type:  enhancement                          |      Status:  accepted
 Priority:  normal                               |   Milestone:  5.2
Component:  Media                                |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests 2nd-        |     Focuses:
  opinion                                        |  accessibility
-------------------------------------------------+-------------------------

Comment (by joedolson):

 I'd rather see `wp_get_attachment_image_src()` deprecated. I don't see a
 value to keeping two very similar functions - the new function adds the
 functionality we're looking for, is more accurately named, and fulfills
 all the needs of the old function. Deprecation seems like a better path.

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


More information about the wp-trac mailing list