[wp-trac] [WordPress Trac] #23103: Image caption shortcode without a width is lost

WordPress Trac noreply at wordpress.org
Thu Mar 6 00:08:37 UTC 2014


#23103: Image caption shortcode without a width is lost
-------------------------+-----------------------
 Reporter:  mark-k       |       Owner:
     Type:  enhancement  |      Status:  reopened
 Priority:  low          |   Milestone:  3.9
Component:  Editor       |     Version:  3.4
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+-----------------------
Changes (by azaozz):

 * milestone:  Future Release => 3.9


Comment:

 Replying to [comment:6 Clorith]:

 This affects only displaying the captions inside the Visual editor. For
 the front-end the HTML can be overridden with the
 `'img_caption_shortcode'` filter.

 The width and height attributes on <img> are considered HTML best practice
 as they let the browser allocate the space for the image before it has
 started downloading and prevent all the page's content from jumping and
 shifting, especially on slower connections.

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


More information about the wp-trac mailing list