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

WordPress Trac noreply at wordpress.org
Tue Jun 28 21:28:03 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):

 [attachment:12235.4.diff] replaces the `esc_html()` call with `wp_kses()`.
 Captions may include HTML, and the caption should be handled similar like
 in the `wp_caption` shortcode.

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


More information about the wp-trac mailing list