[wp-trac] [WordPress Trac] #17044: div.wp-caption shortcode should have width of img, rather than add +10px

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 31 13:24:38 UTC 2012


#17044: div.wp-caption shortcode should have width of img, rather than add +10px
-------------------------------+------------------------------
 Reporter:  mgk25              |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Shortcodes         |     Version:  3.1
 Severity:  normal             |  Resolution:
 Keywords:  close 2nd-opinion  |
-------------------------------+------------------------------

Comment (by oncletom):

 I give up on this issue: I pasted code 7 months ago with a proper solution
 to avoid breaking compatibility, the initial problem talks about **the 10
 pixels extra width** and not *removing the width from styles*.

 If a picture is 460 pixel, the idea is to have `style="width: 460px"`
 instead of `style="width: 470px"`.

 Code is provided, explainations are provided.
 Can't do more.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17044#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list