[wp-trac] [WordPress Trac] #12235: Display caption with the_post_thumbnail

WordPress Trac noreply at wordpress.org
Mon Jun 27 11:37:13 UTC 2016


#12235: Display caption with the_post_thumbnail
---------------------------------------------+-----------------------
 Reporter:  hd-J                             |       Owner:  flixos90
     Type:  enhancement                      |      Status:  assigned
 Priority:  normal                           |   Milestone:  4.6
Component:  Post Thumbnails                  |     Version:  2.9
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+-----------------------

Comment (by flixos90):

 Replying to [comment:26 joemcgill]:
 > If the goal there is to test whether an attachment with a blank excerpt
 value will return false, we should do that in a separate test like
 `test_wp_get_attachment_caption_empty()` rather than mixing two cases in
 single tests. If you had something else in mind, feel free to clarify.

 You're right, that's what I intended to do. Splitting up the tests
 definitely makes sense, so I did that in [attachment:12235.3.diff].

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


More information about the wp-trac mailing list