[wp-trac] [WordPress Trac] #37255: wp_get_attachment_caption and post parameter

WordPress Trac noreply at wordpress.org
Thu Apr 13 08:59:45 UTC 2017


#37255: wp_get_attachment_caption and post parameter
-------------------------+-----------------------------
 Reporter:  wido         |       Owner:  joemcgill
     Type:  enhancement  |      Status:  reviewing
 Priority:  normal       |   Milestone:  Future Release
Component:  Media        |     Version:  4.6
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:
-------------------------+-----------------------------

Comment (by shulard):

 Hello !

 I've just faced the issue when using `wp_get_attachment_url` function. I
 think that the behaviour of media functions must be normalized with others
 functions.

 I started to work on a patch but it's bigger than expected and can't
 finish it until next week.

 Relying on `get_post` will not break the current behaviour of the
 functions : retrieve post from ID when necessary, elsewhere use the
 already loaded data.

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


More information about the wp-trac mailing list