WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #30180, comment 71


Ignore:
Timestamp:
09/20/2019 12:58:36 AM (10 months ago)
Author:
joemcgill
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30180, comment 71

    initial v1  
    55Here's the state of things as I understand them:
    66
    7 1. The ticket was originally a request to add data for the `alt` as a return value for `wp_get_attachment_image_src()`. After reviewing with the Media team and discussing with @joedolson, the decision was that we should not add the `alt` attribute data to that particular function for all the reasons .
     71. The ticket was originally a request to add data for the `alt` as a return value for `wp_get_attachment_image_src()`. After reviewing with the Media team and discussing with @joedolson, the decision was that we should not add the `alt` attribute data to that particular function for all the reasons previously stated in this thread.
    882. Rather than close this ticket as a `wontfix`, we proposed adding a new function that could be used by theme authors and others that includes the `alt` attribute so that we could promote the usage of this new function when building image markup, rather than using `wp_get_attachment_image_src()` which isn't fit for the purpose of building image markup—this new function is an enhancement to WordPress because it is providing new functionality, not fixing broken functionality.
    993. @ryanshoover created an initial implementation for the new functionality, which has since been iterated on, but frankly hasn't received feedback in a timely manner. Now that @antpb has picked it up, we've identified significant problems with the implementation that we'd like to see addressed before adding this new function to WordPress.