[wp-trac] [WordPress Trac] #46113: Incongruent returned value for wp_get_attachment_image_src
WordPress Trac
noreply at wordpress.org
Sat May 2 22:55:31 UTC 2020
#46113: Incongruent returned value for wp_get_attachment_image_src
--------------------------+--------------------------
Reporter: wido | Owner: johnbillion
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.5
Component: Media | Version: 2.5
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: docs
--------------------------+--------------------------
Changes (by johnbillion):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"47748" 47748]:
{{{
#!CommitTicketReference repository="" revision="47748"
Media: Ensure a consistent structure for the array returned by
`wp_get_attachment_image_src()`.
The array returned by this function previously included a fourth element
only when an intermediate image size was used. This change ensures a
consistent structure in the returned array regardless of the function's
internal behaviour.
Props wido, joemcgill, johnbillion
Fixes #46113
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46113#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list