[wp-trac] [WordPress Trac] #46113: Incongruent returned value for wp_get_attachment_image_src

WordPress Trac noreply at wordpress.org
Sat Feb 29 16:51:55 UTC 2020


#46113: Incongruent returned value for wp_get_attachment_image_src
--------------------------+--------------------------
 Reporter:  wido          |       Owner:  johnbillion
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  5.5
Component:  Media         |     Version:  2.5
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  docs
--------------------------+--------------------------
Changes (by johnbillion):

 * owner:  (none) => johnbillion
 * status:  new => accepted
 * milestone:  Future Release => 5.5


Comment:

 I noticed this too when cleaning up the docs for this function. When the
 fallback icon is used, `false` should be added as  the fourth element in
 the returned array. The function docs also need updating to reflect this
 parameter, as the change I made in [47394] is technically not correct due
 to the inconsistent return value.

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


More information about the wp-trac mailing list